New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

tap-merge

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tap-merge

Merge multiple TAP streams into one

  • 0.3.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
741
increased by24.54%
Maintainers
1
Weekly downloads
 
Created
Source

tap-merge Travis CI status npm package version

Merge TAP 13 streams.

Re-numbers tests and test plans to remove conficts. The test plan (e.g. 1..5) line is emitted last. Can be used from the command line or as a module. Streams everything, so it can process concurrently with the TAP producers.

Only asserts, plans and the version header lines are parsed. Everything else is left alone, so extras like YAML blocks or subtests will work.

CLI usage

cat <(tapProducer1) <(tapProducer2) | tap-merge

or otherwise concatenate two TAP streams and feed them on stdin to tap-merge.

Module usage

var tapMerge = require("tap-merge");
process.stdin              // or any readable stream
    .pipe(tapMerge())
    .pipe(process.stdout); // or any writable stream

If you want to give it multiple streams one after the other, use a module like multistream.

Example

Input (two TAP streams, one after the other):

TAP version 13
1..3
# first test
ok 1 - yep
# second test
ok 2 - yep
# third test
ok 3 - yep

TAP version 13
1..2
not ok 1 - fail
ok 2 - just fine

Output (one TAP stream; conflicts resolved):

TAP version 13
# first test
ok 1 - yep
# second test
ok 2 - yep
# third test
ok 3 - yep

not ok 4 - fail
ok 5 - just fine
1..5

Limitations

Doesn't do validation. Provide valid input.

License

ISC.

Keywords

FAQs

Package last updated on 11 Jun 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc