-
Notifications
You must be signed in to change notification settings - Fork 15
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
Skipped tests are classified as passed #12
Comments
closest i could find to a spec for junit output for a test case: <xs:element name="testcase">
<xs:complexType>
<xs:sequence>
<xs:element ref="skipped" minOccurs="0" maxOccurs="1"/>
<xs:element ref="error" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="failure" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="system-out" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="system-err" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="name" type="xs:string" use="required"/>
<xs:attribute name="assertions" type="xs:string" use="optional"/>
<xs:attribute name="time" type="xs:string" use="optional"/>
<xs:attribute name="classname" type="xs:string" use="optional"/>
<xs:attribute name="status" type="xs:string" use="optional"/>
</xs:complexType>
</xs:element> |
for now im using /~https://github.com/spekt/xunit.testlogger with |
@williamdenton Thanks. I will take a look. I couldn't find a spec that included skipped, which is why I grouped skipped under passed. |
@williamdenton Apologies for the delay. The new pre-release package includes a resolution for this issue. If you have time to take a look and provide feedback, that would be great. |
Hi @Siphonophora , ive just come round to modifying my CI pipeline again and pulled in your package from myget. Works well! Thank you! Is this in master/nuget yet? (it took me a long time to try it out) Greatly appreciate you fixing this 👍 |
@williamdenton I'm glad its work. Its not on nuget yet. @codito Can we go ahead and push the current version to nuget? |
@Siphonophora @williamdenton Done. Latest package is here: https://www.nuget.org/packages/JunitXml.TestLogger/2.1.32 |
Thanks, once again i really appreciate you maintaining this for the community! (do you do release notes?) |
@williamdenton Yes, I will write up release notes here later today or tomorrow: /~https://github.com/spekt/junit.testlogger/releases Edit: here is the update: |
there is no special handling for
Outcome.Skipped
so skipped tests appear as successful in xml output.They need a
<skipped/>
element so tools like jenkins can recognise and classify the tests appropriatelyjunit.testlogger/src/JUnit.Xml.TestLogger/JUnitXmlTestLogger.cs
Lines 436 to 456 in 23bbc8f
The text was updated successfully, but these errors were encountered: