tape-run icon indicating copy to clipboard operation
tape-run copied to clipboard

Pipe to "tap-mocha-reporter" doesn't work

Open ericmorand opened this issue 7 years ago • 0 comments

I'm trying to have tape-run piping its result to tap-mocha-reporter to keep consistency with the rest of the test suite of my project. But it can't make it work whatever I try:

browserify -t [ stringify --extensions [.html .twig] ] test/tests/integration/browser.js | tape-run | tap-mocha-reporter spec

Works but the output lacks the actual/expected report - while it works if I pipe to faucet for example.

browserify -t [ stringify --extensions [.html .twig] ] test/tests/integration/browser.js | tape-run --render="tap-mocha-reporter spec"

Fails, which is expected I guess.

browserify -t [ stringify --extensions [.html .twig] ] test/tests/integration/browser.js | tape-run --render="tap-spec" | tap-mocha-reporter spec

Works, but tap-mocha-reporter formatting is lost.

Is there a way to handle this?

ericmorand avatar Sep 25 '18 09:09 ericmorand