-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
If the last section fails, the test is re-run once more #1389
Labels
Comments
nikola-benes
changed the title
If last section fails, the test is re-run once more
If the last section fails, the test is re-run once more
Sep 20, 2018
Unfortunately, yes. The reason is that Catch/2 is discovering sections as it runs them. If the last section fails it doesn't know if there are any more after it - so needs to run again to see. |
Yeah, this is not really possible to fix. |
horenmar
added
Resolved - pending review
Issue waiting for feedback from the original author
Won't Fix
labels
Sep 24, 2018
Closing based on last comment |
horenmar
removed
the
Resolved - pending review
Issue waiting for feedback from the original author
label
Oct 13, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
It seems that if the last SECTION inside a TEST_CASE fails (i.e. contains a false assertion), the TEST_CASE is run once more, this time bypassing all the sections. Is this expected behaviour?
Steps to reproduce
Extra information
The text was updated successfully, but these errors were encountered: