-
-
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
Junit reporter with [!mayfail] tests #2116
Comments
Technically the change is easy enough, but with JUnit reporter the question always is what does the ecosystem at large do in similar cases. Can you point me to some resources/documentation on that? |
Hmm documentation on the XML schema is a bit hard to come by, but I think I saw this page and decided to try adding the |
Hmmm, I am not sure that marking run-but-failed-but-it-is-okay-to-fail tests as skipped is not too surprising. 🤔 |
What other alternatives do we have? Currently if those tests fail, it is reported as an hard failure in the junit xml report. Thus making it impossible to distinguish between a "pass" and a "fail" based on the other test results. My understanding is that |
Well, they can be reporter as passed. 😃 I'll have to think about this a bit. |
Sure, I'd be happy that they be reported as passed as well. Skipped seemed a good compromise to highlight failed tests that can be safely "ignored" for the purpose of the CI. |
@horenmar did you came to a decision regarding this issue? |
Hi. Wondering if there's any progress on this one? |
I am gonna go with "skipped", I am currently experimenting with different implementations. |
Ok, can you try whether the output from |
@horenmar sorry for the late reply. I tried the branch and can confirm that tests tagged as |
Hi,
This is sort of a follow-up to #786. I have some unit tests marked as
[!mayfail]
, so runnit unit tests withctest
return an error code of 0, even though those tests fail. However, when using the Junit reporter (which I need for Jenkins), those tests still appear as failed in the XML output. Would it be possible to mark them asskipped
? It seems one can add a<skipped />
element under the test case like so:The text was updated successfully, but these errors were encountered: