junit-tap

0.2.0 • Public • Published

junit-tap

XML jUnit formatted stream conventer produces a TAP output.

Usage

Simply pass XML input in jUnit format

junit-tap < junit.xml

or using cat

cat junit.xml | junit-tap

or in shell pipeline

( cd ../gource; node --test --test-reporter junit test/ ) | junit-tap | tap-merge | faucet

Help

junit-tap --help

It should produce output like below:

Options:
  --fast     Do not simulate test duration based on time argument value
                                                      [boolean] [default: false]
  --help     Show help                                                 [boolean]
  --version  Show version number                                       [boolean]

Real time test reproduction

junit-tap can produce TAP output acts like tests running in real time. The behaviour is based on time attribute of testsuite and testcase tags.

You can produce TAP stream as fast as possible by using --fast switch.

Limitations

Mainly tested with jUnit XML output from node.js test runner and tap-junit produced from TAP stream from ava and bats.

It counts from 1 for every test suite. For further output processing properly, tap-merge package could be helpful.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.0
    17
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.2.0
    17
  • 0.1.1
    2

Package Sidebar

Install

npm i junit-tap

Weekly Downloads

19

Version

0.2.0

License

MIT

Unpacked Size

14.8 kB

Total Files

6

Last publish

Collaborators

  • marek629