1

I'm using MSBuild Community Tasks to do automated unit testing on my TFS build server like this:

<Target Name="Test" DependsOnTargets="Build">
  <!-- blah blah blah -->

  <NUnit Assemblies="@(TestAssembly)" />
</Target>

When I queue a build in TFS, this produces a TestResult.xml file in the build directory. TFS doesn't know how to interpret this though. On the information page for the completed build, it still says:

No test results

This is not unexpected, since TFS doesn't interoperate with nUnit out of the box. Is it possible to get nUnit's results to publish back to TFS?

recursive
  • 83,943
  • 34
  • 151
  • 241
  • have you tried using the nunit adapter for VS instead? http://nunit.org/index.php?p=vsTestAdapter&r=2.6.2 – allen May 18 '14 at 10:01
  • @allen: Yes, I've used that, but I don't have VS on the build server, and nor have I seen how to get VS to report test results back to the build controller in TFS. – recursive May 18 '14 at 16:52

0 Answers0