Petitest::Tap

Gem Version Documentation

TAP output for Petitest.

Installation

Add this line to your application"s Gemfile:

gem "petitest-tap"

And then execute:

bundle

Or install it yourself as:

gem install petitest-tap

Usage

  1. Require petitest/tap
  2. Change Petitest.configuration.subscribers
  3. Run tests
require "petitest/tap"
Petitest.configuration.subscribers = [Petitest::Tap::Subscriber.new]

Output

See https://testanything.org/ for more details about the TAP specifications.

TAP version 13
1..2
ok 1 - TapTest#test_a
ok 2 - TapTest#test_b

Nyan

Demo with https://github.com/calvinmetcalf/tap-nyan:

demo