Project

tap_parser

0.0
The project is in a healthy, maintained state
Parser for the Test Anything Protocol (TAP)
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

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 (ianfixes@gmail.com) in 2023. It's released under the Apache 2.0 license.

See Also