Search code examples
nunitteamcitygalliobuild-server

Team City - Add Gallio test result xml to build display


Im using TeamCity with Gallio/XUnit/Specflow and trying to display our unit/acceptance test results. I believe the output is NUnit xml test result format.

Our unit tests auotmatically display using the command runner with Gallio. The acceptance tests are run through a large Powershell script which calls Gallio (Run-Gallio).

Results are output to acceptance-test-results.xml. Is there a way to display the acceptance-test-results.xml in TeamCity (6.5.5)?


Solution

  • To do this in a PowerShell script add the following

     Write-Output "##teamcity[importData type='nunit' path='C:\SomeDirectory\YourResults.xml']"