-
Notifications
You must be signed in to change notification settings - Fork 255
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
Detailed XUnit failure message #384
Comments
Full output for each test is added to the XML file. Open it and see yourself. This must be a Bamboo limitation. In Jenkins I can click the test and see full output. |
Bamboo does not show the full output. It just pulls the text out of the failure element, message attribute. I do see it in the XML file when running locally. |
You could try to report this to Bamboo as a bug or missing feature? |
I could. Bamboo aside, it seems like having the details under the failure message would make more sense though. Would that cause issues somewhere else? |
Maybe the current contents of Unfortunately there is no formal standard for JUnit XML and various implementations handle it differently. Ideally we can find a format that works everywhere. In failure of that we might need to add a |
I like that idea. Also agree with the idea of trying to find a format that works everywhere.
Looks like Bamboo does display text inside of the <failure> tag. The message attribute is shown first, followed by a line break and then the text inside the tag.
|
I think system-out should always contain the output regardless of failure like today but the failure tag should get a copy of system-out in case of failure. This is to make it backwards compatible in the case someone uses system-out. We need check how Jenkins reacts to this first though. |
Sounds good. I went ahead and made the change and tested locally. I will stand by to hear how this works with Jenkins |
Will you create a pull request? |
Done: #386 |
Seems this is a long standing issue with Bamboo: https://community.atlassian.com/t5/Bamboo-questions/junit-parser-doesn-t-parse-quot-system-out-quot-element-in-test/qaq-p/345459 In Jenkins this solution is not ideal since Jenkins will display both the |
Another non-ideal option is to remove the text from |
I think changing system-out is not ideal and probably break backwards compatibility for someone. Also logically the system-out is still the system-out even in failure. It think it has to be a bamboo specific work arround that is opt in. |
That's fair. I will take a stab at implementing the |
#384: Option to re-format XUnit XML for Bamboo
This reverts commit 206853f.
It would be nice to have a more detailed failure message in the XUnit output file. Currently the message is either just "Failed" or "Skipped" (set in test_report.py). Initial thoughts are to put in the last few lines of the system output, but I'd be interested in other opinions.
Use case: I have VUnit automated with Bamboo. When a test case fails, the failure message shows up on the test results screen. It would be nice to not have to dig into the log for every failure.
The text was updated successfully, but these errors were encountered: