-
Notifications
You must be signed in to change notification settings - Fork 44
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
Errors in before-all
are silently ignored
#179
Comments
I've verified that this happens, it's probably a bug. It's due to the fact that errors in As you know buttercup is modeled on jasmine, not mocha. And I'm not |
before-all
does not error when errors occur inside itbefore-all
are silently ignored
Oh so sorry! I confused the two and thought buttercup was based on Mocha. My bad! In general I think both work the same way regarding The major tricky corner cases that have caused man-years of heartache are around what to do if the before-* fails, or an after-* fails, e.g. should you continue running more tests. Like, if a Should Thanks for your quick reply! |
Consider this test:
The output is this:
That is unexpected. I would expect that that buttercup should catch all errors in before and after handlers, and print that they fail, and also skip the suite if it fails in a before.
After all, that is what Mocha does:
The text was updated successfully, but these errors were encountered: