[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 thenumber
is not present, the parser maintains its own count. - The
description
is the text describing the test. If thedescription
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), andignore
(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 thediagnostic
is not present, then its value is an empty string. - The value of the
passing
istrue
if test status is eitherpassing
orignored
.
Post a comment