TapParser Ruby gem (tap_parser)

Gem Version Documentation

tap_parser is a Ruby gem that parses the Test Anything Protocol.

Quick start

First gem install tap_parser. Then:

require "TAPParser"
require "pathname"
require "json"

result_file = Pathname.new("/path/to/myfile.tap")
result = TAPParser.parse(result_file.basename, File.read(result_file).each_line)
puts JSON.pretty_generate(result, indent: "  ")

Author

This gem was written by Ian Katz ([email protected]) in 2023. It's released under the Apache 2.0 license.

See Also