-
Notifications
You must be signed in to change notification settings - Fork 115
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
the after() function should execute after a failed test as well as after a passing test #197
Comments
I did it by passing the after function to the function that checks failfast, prints the stack for failing tests, etc. Added the call just after the stack print From run () (in runner .fs): This would call it regardless of the value of failfast, You could call it conditionally as well. |
thanks I will work on getting something like this in tonight. |
Jeremy just added his version as a pull request too. :-) Thanks, Chris! |
This has the fix in, 9.25 did not because I forgot to merge the change before building the package. |
If failfast is true, it probably doesn't matter if the after function executes, but when failfast is false, it's often more important to execute cleanup steps in the after function when a test fails than when it passes.
The text was updated successfully, but these errors were encountered: