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

Prevent subsequent hooks from being called if we are --bailing. #835

Closed
wants to merge 34 commits into from

Conversation

aearly
Copy link
Contributor

@aearly aearly commented May 5, 2013

Fixes #690. I also added an example hook to test-bail. Currently mocha skips only the subsequent tests if there are failures and bail is set. This adds that logic to hooks as well.

@aearly aearly mentioned this pull request May 6, 2013
@tj
Copy link
Contributor

tj commented May 22, 2013

got a bunch of other stuff mixed in there as well

@aearly
Copy link
Contributor Author

aearly commented May 22, 2013

My bad, didn't think I'd be doing a lot more work after this PR.

@aearly aearly closed this May 22, 2013
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.

'before' and 'after' run in later suites even with '--bail'
2 participants