Reputation: 11
When I look the JUnit xsd into the JUnit project https://github.com/junit-team/junit5/blob/master/platform-tests/src/test/resources/jenkins-junit.xsd
I see that the skipped attribute is not present into the testsuites node. Only the disabled is present
I'm wondering that testsuites node will group all results of différent testsuite and cumulate the skipped attribute of all testsuite (if present)
Do you know the reason of this ?
Upvotes: 1
Views: 238
Reputation: 1253
The main reason for this is that skipped category it's a legacy from previous JUnit versions used to group @Ignore
annotated elements. JUnit5, to which you referring, uses @Disabled
annotation for such purpose, therefore disabled category goes here. Please see Official JUnit5 documentation for more info
Upvotes: 1