azer / prova

Test runner based on Tape and Browserify
Other
332 stars 30 forks source link

--tap option does not work when used in combination with --browser #39

Open aghassemi opened 10 years ago

aghassemi commented 10 years ago

--tap works fine in node mode but has no effect when I run with --browser, I just get the regular "x passed assertions" instead of the tap output on stdout.

It would be awesome to get the raw tap output without any extras like the browser version, etc.. on stdout so test results can be interpreted by CI systems.

azer commented 10 years ago

Good idea, could you give an example of the output you expect ?

aghassemi commented 10 years ago

I think the exact output that is generated by --tap option when used without --browser would be perfect. so when running

prova test.js --tap --browser --quit

I would like to see

TAP version 13
# test 1
ok 1 (unnamed assert)
# test 2
ok 2 (unnamed assert)

1..2
# tests 2
# pass  2

# ok

instead of

 prova:browser Visit http://0.0.0.0:7559 with a browser to start running the tests. +0ms

  2 passed assertions.
  Browser: Chrome v37 Engine: WebKit v537.36 OS: Linux vx86_64