Skip to content
Dustin Hershman edited this page Feb 21, 2019 · 2 revisions

Usage

Using tap-junit is pretty ezpz! After installing it you can simply pipe your output into tap-junit from a tap runner like tape.

Parameters

You can pass in a few parameters (arguments) to the cli to help customize your output!

  • -o, --output - designate where you want the .xml results to output
    • If you do not specify an output then results will be displayed within the terminal
  • -n, --name - value provided will be the name of the output.xml file, otherwise defaults to tap.xml
  • -s, --suite - sets the main test suite name defaults to Tap-Junit if not passed
  • -v, --version - displays the current tap-junit version
  • -i, --input - Specify a specific tap txt input file to transform

Examples

tape test/*.js | tap-junit --output output/test

node test.js | ./node_modules/tap-junit/bin/tap-junit --output output/test

tap-junit -o output/tests -n nontape < src/test/non-tape.tap

tape tests/thing.js | tap-junit > output/thing.xml

tap-junit -i tap.txt -s suite-name

Clone this wiki locally