Closed jamestalmage closed 9 years ago
SOOO thankful you did this! Thank you! Haven't had time and this keeps popping up. Published as 1.4.0
. Updating tap-spec
soon.
Awesome, thanks!
//cc: @sindresorhus @vdemedes
@jamestalmage What does this mean for us now? We're already using the builtin node-tap
reporter? Is tap-spec
any better?
It means we could go back to tape and maybe get back Node 0.10 Windows tests.
I see no need for this if we stick with tap.
@jamestalmage Oh ok. Let's just stick with what we have right now. It seems to be working fine and I don't want to open the can of worms that is Node.js 0.10 on Windows yet. We can reconsider in the future.
Related: https://github.com/scottcorgan/tap-spec/issues/40
@scottcorgan
I've searched high and low, and can not find a way to determine the exit code of the process piping data to stdinn. I am not sure it exists (I know it does in bash shell, but it does not seem to at the OS level).
The way other tap reporters (i.e. faucet) seem to handle this, is that they look for the plan line (which, as I understand it is required), and then compare what they get.
This implements recognition of the plan line:
And emits it as an event.
This will allow you to correctly exit with your other reporters. Thanks!