Skip to content
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

Fix: Bail flag causes before() hooks to be run even after a failure #1852

Merged

Conversation

aaron-j-krause
Copy link
Contributor

Fixes #1812

Added a bail check to the runSuite method in runner.js. There was already a commented out check for a subsequent before block in the bail fixture so I just uncommented that for the test.

@danielstjules
Copy link
Contributor

Good catch :) That's been an outstanding TODO for a while now

@dasilvacontin
Copy link
Contributor

Thanks! LGTM

boneskull added a commit that referenced this pull request Sep 2, 2015
Fix: Bail flag causes before() hooks to be run even after a failure
@boneskull boneskull merged commit 4f0b32e into mochajs:master Sep 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bail flag causes before() hooks to be run even after a failure
4 participants