Continua doesn't show Unit Test results when DUnitX action fails, but shows them when it succeeds

Compare these two builds (you can login as guest to view them; Vincent has credentials to do more):

- Success http://80.100.143.119:58080/Spring4Djwp/ci/builds/view/781
- Failure http://80.100.143.119:58080/Spring4Djwp/ci/builds/log/776

The only change is this one:

spring4djwp 4e81f66f88952b2df… master Jeroen Wiert Pluimers prevent Delphi 2010 bug with wrong reference counting in records containing only one field of an interface type:
https://bitbucket.org/jeroenp/spring4d/commits/4e81f66f88952b2df8bd8283220ca374f2aa44a9

This fixes the DUnitX step for which you can download the artefacts here:

- success 781: http://80.100.143.119:58080/Spring4Djwp/ci/builds/downloadartifact/781?artifactId=981f221e-7d59-4f4b-b370-a41d012bbbe1
- failure 776: http://80.100.143.119:58080/Spring4Djwp/ci/builds/downloadartifact/776?artifactId=77c97dd9-f3dd-4666-909f-a41800e33eea

(I cannot attach the files as the forum software refuses to upload XML files)

Using the tools in https://github.com/VSoftTechnologies/DUnit-XML/pull/3 you can PrettyPrint the XML and verify:

1. the difference has to do with success/failure of just a few tests
2. neither conforms to the NUnit XSD

But still ContinuaCI displays the 781 build (success), but not the 776 build (failure).

Why?

–jeroen

Hi Jeroen,

Thanks for reporting this issue. We've implemented a fix for the null reference exception - you can download a new version using the following links:

[outdated links removed]

The message: Error Found whilst processing NUnit Report File: The element 'test-case' has invalid child element 'failure'. on line: 2 position: 122067 refers to test cases which have multiple "failure" elements in the output from DUnit. This is invalid according to the NUnit schema which states that the "failure" element should not occur more than once (default value for maxOccurs is 1). This is really a problem with DUnit rather than Continua.