[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
numberis the test number. If thenumberis not present, the parser maintains its own count. - The
descriptionis the text describing the test. If thedescriptionis not present, then its value is an empty string. - The
statusis 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
directiveis either skipped or todo. - The
diagnosticis a YAML block or text. If it is YAML then its value is ruby Hash, otherwise, string. If thediagnosticis not present, then its value is an empty string. - The value of the
passingistrueif test status is eitherpassingorignored.
Post a comment