Catch Ruby errors before your users do. Monitor Ruby production errors in real-time and debug them in minutes, before users notice. Our open source Ruby SDK works with Rails, Sinatra, and more. Use this link and get one month free!

RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

[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