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

**URL:** https://www.finalbuilder.com/forums/t/continua-doesnt-show-unit-test-results-when-dunitx-action-fails-but-shows-them-when-it-succeeds/5947
**Category:** Bugs
**Created:** [January 11, 2015, 7:05am UTC](https://www.finalbuilder.com/forums/t/continua-doesnt-show-unit-test-results-when-dunitx-action-fails-but-shows-them-when-it-succeeds/5947 "2015-01-11T07:05:10Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![jeroenp](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/j/c89c15/32.png) [@jeroenp](https://www.finalbuilder.com/forums/u/jeroenp)
#### Post date: [January 11, 2015, 7:05am UTC](https://www.finalbuilder.com/forums/t/continua-doesnt-show-unit-test-results-when-dunitx-action-fails-but-shows-them-when-it-succeeds/5947/1 "2015-01-11T07:05:10Z")

</div>

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](http://80.100.143.119:58080/Spring4Djwp/ci/builds/view/781)  
- Failure&nbsp;[http://80.100.143.119:58080/Spring4Djwp/ci/builds/log/776](http://80.100.143.119:58080/Spring4Djwp/ci/builds/log/776)  
  
The only change is this one:

| [spring4djwp](http://80.100.143.119:58080/Spring4Djwp/ci/builds/changes/781# "Expand") | [4e81f66f88952b2df…](http://80.100.143.119:58080/Spring4Djwp/ci/repositories/changeset/a46ce4b0-41ae-43f2-ac64-a41d00ff13ca) | 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](https://bitbucket.org/jeroenp/spring4d/commits/4e81f66f88952b2df8bd8283220ca374f2aa44a9)  
  
This fixes the DUnitX step for which you can download the artefacts here:  
  
- success 781:&nbsp;[http://80.100.143.119:58080/Spring4Djwp/ci/builds/downloadartifact/781?artifactId=981f221e-7d59-4f4b-b370-a41d012bbbe1](http://80.100.143.119:58080/Spring4Djwp/ci/builds/downloadartifact/781?artifactId=981f221e-7d59-4f4b-b370-a41d012bbbe1)  
- failure 776:&nbsp;[http://80.100.143.119:58080/Spring4Djwp/ci/builds/downloadartifact/776?artifactId=77c97dd9-f3dd-4666-909f-a41800e33eea](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&nbsp;[https://github.com/VSoftTechnologies/DUnit-XML/pull/3](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

---

<div class="post-metadata">

### Author: ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)
#### Post date: [January 12, 2015, 2:51am UTC](https://www.finalbuilder.com/forums/t/continua-doesnt-show-unit-test-results-when-dunitx-action-fails-but-shows-them-when-it-succeeds/5947/2 "2015-01-12T02:51:25Z")

</div>

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](http://www.nunit.org/docs/2.6.4/files/Results.xsd) 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.
