Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Addresses #4
The formats for test-suites and test-case between V2 and V3 are similar, but have some structural and summary differences.
V2:
test-results
. The attributetotal
represent the number of executed, where asnot-run
were not executed. There is no total for passed, it must be inferred from the total by subtracting errors+failures+inconclusives.test-suites
are nested withinresults
nodes, with each part of the namespace represented as a different node. As a result, the depth of the structure is not fixed.test-case
nodes are held primarily intest-suites
that have aTestFixture
type, with the exception ofParameterizedTest
.id
attributes on nodes.V3:
test-run
. Additional attributes for testcasecount (previously total + not-run), passed (previously total - errors+failures+inconclusive).test-suite
nodes are not deeply nested, thoughexecuted
orsuccess
attributes. TheLabel
attribute contains Error, Cancelled or Invalid if there's a Failed state.executed="False"
. V3 does not include thesetest-case
nodes, but thetest-suite
counts them in thetestcasecount
attribute, so it's possible to have an emptytest-suite
that indicates it has test-cases but it does not.<properties>
but not<categories>
. In addition to fixture and test-case level, properties are also supported at the test-suiteType="Assembly"
level.id
attributes are present.This implementation automatically detects whether you are using nunit v2 or nunit v3 format.