title: What format does the NUnit test results XML need to be to publish back to TFS 2010 build?
body: <p>I have some xUnit tests running as part of a build and I need to post the results back to TFS 2010 so they show up in the build summary/log like normal tests would.</p>
  
  <p>I execute the tests with the <code>-nunit</code> argument so that the output is an NUnit xml and not a xUnit one. I'm trying to use NUnit4TeamBuild to publish the results xml back to TFS and it looks like it's working but there's no test results anywhere at the end.</p>
  
  <p>This is the detailed log for that step:</p>
  
  <pre><code>Publish xUnit Results
  NUnitTfs.exe -n results.xml -t Project -b "Build_20171221.8" -v 2010
  Loading NUnit Output from results.xml...
  Transforming NUnit output to .trx file...
  Adding build information to .trx file...
  Publishing .trx file...
  Checking test run does not exist...
  Reading users identity...
  Creating test run...
  Creating test results...
  Updating test run with details...
  Uploading test run details...
  Uploading assemblies...
  Updating test results with details...
  Uploading test result details...
  </code></pre>
  
  <p>The build finishes with 0 errors and 0 warnings but also says "<strong><em>No Test Results</em></strong>" in the build summary and there are no test results anywhere.</p>
  
  <p>I have no idea why the tests aren't publishing.</p>
  
  <p>Here's an example of the XML that it's trying to publish (note that I've changed the file paths and shortened the stack trace):</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;test-results name="Test results" errors="0" inconclusive="0" ignored="0" invalid="0" not-run="0" date="2017-12-21" time="08:39:57" total="1" failures="1" skipped="0"&gt;
    &lt;environment os-version="unknown" platform="unknown" cwd="unknown" machine-name="unknown" user="unknown" user-domain="unknown" nunit-version="xUnit.net 2.3.1.3858" clr-version="64-bit .NET 4.0.30319.34209 [collection-per-class, non-parallel]" /&gt;
    &lt;culture-info current-culture="unknown" current-uiculture="unknown" /&gt;
    &lt;test-suite type="Assemblies" name="C:\Tests.DLL" executed="True" success="False" result="Failure" time="57.41"&gt;
      &lt;results&gt;
        &lt;test-suite type="Assembly" executed="True" name="C:\Tests.DLL" result="Failure" success="False" time="57.410"&gt;
          &lt;results&gt;
            &lt;test-suite type="TestCollection" executed="True" name="Tests" result="Failure" success="False" time="48.992"&gt;
              &lt;results&gt;
                &lt;test-case name="Google_Search_Test" executed="True" result="Failure" success="False" time="48.9917024"&gt;
                  &lt;failure&gt;
                    &lt;message&gt;System.Exception : Test Failed. Exception has been thrown by the target of an invocation.&lt;/message&gt;
                    &lt;stack-trace&gt;at Tests.Fixtures.Fixture.FormatException(Exception e) in... etc. &lt;/stack-trace&gt;
                  &lt;/failure&gt;
                &lt;/test-case&gt;
              &lt;/results&gt;
            &lt;/test-suite&gt;
          &lt;/results&gt;
        &lt;/test-suite&gt;
      &lt;/results&gt;
    &lt;/test-suite&gt;
  &lt;/test-results&gt;
  </code></pre>