-
Notifications
You must be signed in to change notification settings - Fork 136
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
Add optional testcase attributes back #81
Conversation
These attributes were present from 2014-2018 on the testcase element. Tools other than maven surefire or ant tasks use the XSD file to build a XML report file that xunit plugin can read. https://github.com/jenkinsci/xunit-plugin/blob/14c6e39c38408b9ed6280361484a13c6f5becca7/src/main/resources/org/jenkinsci/plugins/xunit/types/model/xsd/junit-10.xsd xunit 2.2.4 removed those optional attributes. `unittest-xml-reporting` is a python library that tries to generate xml report using that older schema definition. xmlrunner/unittest-xml-reporting#201
I do not see any of these options in the Ant schema: For what I know Ant schema comes from windyroad |
I did not mention Ant.
Some of these optional fields make sense for python tracebacks or to indicate file and lineno where testcase is defined and that's why we're using them. https://plugins.jenkins.io/xunit/
and it would be nice to support |
Than the way is add a new generic unit type without any schema validation where the XSLT is that one I had link in the main documentation. I will have a check (if I have time) next weekends. |
The XSL for this type would be something like this:
|
These attributes were present from 2014-2018 on the testcase element.
Tools other than maven surefire or ant tasks use the XSD file to build a XML report file that xunit plugin can read.
https://github.com/jenkinsci/xunit-plugin/blob/14c6e39c38408b9ed6280361484a13c6f5becca7/src/main/resources/org/jenkinsci/plugins/xunit/types/model/xsd/junit-10.xsd
xunit 2.2.4 removed those optional attributes.
unittest-xml-reporting
is a python library that tries to generate xml report using that older schema definition.xmlrunner/unittest-xml-reporting#201