-
Notifications
You must be signed in to change notification settings - Fork 64
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
Ensure after.each hooks run when an exception is raised? #71
Comments
This has been open a long time without comment? seems like the approach is wrong when comparing with any other testing frameworks. Would a pull request be entertained if it looked at changing this? |
I opened another issue for this accidentally because I didn't see this one. I actually submitted a pull request for it. This issue is currently making it pretty difficult to use mamba if you need to tear stuff down after every test. |
I'm going to do some research about this stuff and I hope to get it done today. Thanks for your patience. |
I have seen an interesting behaviour in rspec:
And it gives following output:
It is raising an error composed with 2 additional errors, one for spec block and other for after.each block. I think this is the desired behaviour for mamba and I would like to implement it. What do you think? Thanks. |
When an exception is raised in an example, all
after.each
hooks for that example are skipped:Is this intentional? Or should the
after.each
hooks be run?The text was updated successfully, but these errors were encountered: