-
-
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
[!shouldfail] tag does not produce a failure when no assertions fail #620
Comments
Thanks, @gkm4d. |
@philsquared appreciate the quick fix! The behavior with 1.4.0 is now as I expected. I will pass along a couple of observations related to JUnit output. Consider this test:
which produces:
I was a bit confused by 2 tests being reported. Stepping though the code I see this is due to the introduction of The second observation is, I think, a little more problematic. It may have actually have been an existing problem, and I can add a new ticket if necessary. Consider the slightly modified test:
which produces:
Notice the very large number of failures. Here, a failure is counted due to the exception, but due to the Thanks again for the quick fix! |
The issue in title is solved, so I am going to close this soon. I am also going to open up a new issue with the other problems found (hopefully soon 😄 ). |
When the [!shouldfail] tag it utilized a test will be marked as a failure when no assertions fail.
For example, I would expect the below example to be marked as a failure because the lone assertion passes, but a failure was expected:
But instead I get: All tests passed (1 assertion in 1 test case). This is with v1.3.5.
See discussion at: https://groups.google.com/forum/#!topic/catch-forum/0h4McyyKKz4
The text was updated successfully, but these errors were encountered: