-
Notifications
You must be signed in to change notification settings - Fork 5
Usage
Dustin Hershman edited this page Feb 21, 2019
·
2 revisions
Using tap-junit is pretty ezpz! After installing it you can simply pipe your output into tap-junit from a tap runner like tape.
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 theoutput.xmlfile, otherwise defaults totap.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
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