-
Notifications
You must be signed in to change notification settings - Fork 110
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
Separate the Stack and The Error from a TestCase Failure #224
base: master
Are you sure you want to change the base?
Conversation
@palmerj3 would like your thoughts, this PR isn't ready just this is a major possible change here. |
I like that. This makes a lot of sense to me. If you can stabilize this I'd be happy to take a look and merge. |
Thanks, so far I got the existing UT's fixed, working to see of any edge cases I might of missed.. |
@palmerj3 verified in our CI it works! we are able to see stack traces in our CI/CD system yay!. But would like your eyes , in theory is this a major version change since the format may be different? |
2 similar comments
Sorry for the delay in reviewing. I was traveling for work and then was ill. Looking more closely at this, I am worried it will generate invalid XML. Escape codes in XML won't pass many XML parsers. There is a PR and related issue that are in direct conflict with this change. See #230 I would be more willing to add something like this if it wasn't on by default and had a configuration option users could utilize to enable it. |
So if I understand correctly, the current worry is that adding this new information might cause the XML to not be valid since some people might have strange stack trace messages with escape characters or unicode. I can push this under a config option but not sure how that PR conflicts with mine. |
Perhaps start a thread over there and discuss |
Separation of Regarding the |
@mastrzyz Now that #230 has merged can this be rebased? The lack of |
Currently a big problem is that we are only using the inner text of the Failure like so:
With the code being like this: ie treating what's inside of the failure object as a pure string :
This effectively makes no differentiation between the Stack trace of a Failure or the message.
While the JUNIT standard is loose, officially Azure Devops treats the inner text part of
Failure
as stack trace while the attributemessage
as the actual messageSo we would get the following back by changing that :