-
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
Allow failing a test immediately if before-each
fails
#189
Comments
Thank you for a very thorough issue description. The problem I see with not running the rest of the |
I think we should execute the |
Ah, I missed that in your original report. Do you think we should tie this to the same option as #188? If I understand you correctly that is what Jasmine does. (I've never used Jasmine myself, I just know that buttercup is inspired by it.) |
Jasmine continues executing the remaining tests if a script
and output
if that makes it a little clearer. #188 sounds closer to the |
It often does not make sense to execute tests if there are errors in any of the setup steps. #179 discusses a related issue of ignored errors in
before-all
. This issue is targeting the expected behavior when an error occurs while executingbefore-each
.Currently, if an error occurs in a
before-each
then the corresponding test still executes. To reproduce, see:script.sh
which gives this output:
output
The desired behavior is:
before-each
methods execute after the first one failsafter-each
methods are executedThis aligns with the behavior of jasmine when using
--stop-on-failure=true
(it is false by default). To reproduce, see:script.sh
which gives this output:
output
The text was updated successfully, but these errors were encountered: