RubyFlow The Ruby and Rails community linklog

[Gem] TAP Report Parser

This gem parses a TAP report per the specifications listed on https://testanything.org/tap-specification.html. Each of the tests has six attributes: number, description, status, directive, diagnostic and passing.

  • The number is the test number. If the number is not present, the parser maintains its own count.
  • The description is the text describing the test. If the description is not present, then its value is an empty string.
  • The status is represented by one of the four values: success (when test is passing), failure (when test is failing), skipped (when test is marked as skipped irrespective of success or failure), and ignore (when test is marked as todo irrespective of success or failure).
  • The directive is either skipped or todo.
  • The diagnostic is a YAML block or text. If it is YAML then its value is ruby Hash, otherwise, string. If the diagnostic is not present, then its value is an empty string.
  • The value of the passing is true if test status is either passing or ignored.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in