-
-
Notifications
You must be signed in to change notification settings - Fork 306
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failure due to plan != count
causes all other tests to fail as 'exited without ending'
#550
Comments
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. |
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 |
Looking back at this, uncommenting the 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
.The text was updated successfully, but these errors were encountered: