Open SH4R1K7 opened 3 years ago
I assume this happens the same in tape v4 - I've noticed this many times in the past and it didn't register as an inherent problem, but it's reasonable to expect that the second test functions normally as long as the first test doesn't terminate the process.
I've also noticed this many times that when tape fails sometimes it fails more loudly then other times.
I always ignore the noise and fix the root cause without thinking of removing the noise.
but it's reasonable to expect that the second test functions normally as long as the first test doesn't terminate the process.
Yep, I should've made that a bit clearer I guess - I have lots of tests that pass but having added a new test that fails the plan causes all of my passing tests to 'fail' as well; I say 'fail' because they're not actually executed but are reported as having failed.
I ignored it for some time as well but I'm at a point where the only way to fix the failing test is to fix a few other ones first which is made very difficult - the only way out is to t.skip
every test that causes this issue, then unskip them, round and round.
Looking back at this, uncommenting the t.end()
in your OP's example has the proper output.
I've added a failing test case in https://github.com/tape-testing/tape/compare/plan-failure; notably if i swap the tap test cases (right now i have "with end" followed by "without end") then they both fail, so i think the issue is that there's something that's wrongly stateful.
Howdy, this is a peculiar one:
Expected the 2nd test to pass but it doesn't even get called. Whether the 2nd test uses
t.plan
ort.end
makes no difference. Additionally, all tests in other files also fail in the same fashion when run astape test/*.js
(the above is the minimal necessary to reproduce the issue).Output below:
The event emitted at the bottom of the stack is
exit
from the async trampoline.Reproduced here. Note that the codepen doesn't capture the same output as when running the same code locally.
Tested against tape
v5.1.0
andv5.2.0
.