-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
'before' and 'after' run in later suites even with '--bail' #690
Comments
it should work for that test-case and then bail, which is the result that I get |
What are "it" and "that" ? |
if a test case fails afterEach for that case only should execute, but subsequent test cases / hooks should not |
Ok, well it seems like they are. I just did an
any ideas? |
no ideas? |
no ideas, works fine for me on osx and node 0.8.x |
I can reproduce this and I have other problems with before/after running/not running/ran out of order too (that's why I was looking at this issue) Running the code OP posted above produce the exact same result (before/after ran even when it shouldn't) https://gist.github.com/chakrit/4992989
|
Just tried |
Just confirming that this test case still exhibits the same behaviour: $ mocha --version
1.8.1
|
Wanna take another look at this @visionmedia ? |
+1
mocha 1.8.2 |
Confirming this still happens with 1.9.0. Also tests are still running out of order. I wish I'd have proper test case to file a separate issue :/ In case anyone want to test this out, you can clone this gist: https://gist.github.com/chakrit/5530541 and run |
Interestingly, the rules of open source software say that at month 6 of inaction by @visionmedia, we are required to form a picket line outside of his place of residence to induce shame. |
Would love to fix this myself with a PR but not feeling like diving into a foreign codebase right now :( |
when is this going to be released?? |
I don't think this should be the case? Shouldn't it skip everything else, including befores and afters?
The text was updated successfully, but these errors were encountered: