English 中文(简体)
TeamCity NUnit test result visualisation
原标题:

Is there any way to produce visual results of NUnit tests from within TeamCity s "Tests" tab, currently my NAnt script outputs an .xml file of the results using the following task:

<nunit2 haltonfailure="false" failonerror="false" verbose="true">
  <formatter type="Xml" extension=".xml" outputdir="${tests.output.dir}" usefile="true" />
  <test assemblyname="${assemblies.output.dir}/TestApp.Tests.dll" />
</nunit2>

TIA

问题回答

It can be done using TeamCity import data service message:

Print to the console the next message:

##teamcity[importData type= nunit path= xml results path ]

xml results path should point to the path where nunit placed the test results.

By the way, you can use TeamCity nunit launcher to execute and report tests automatically.





相关问题
Create directory using Nant

Not sure if I m just totally missing it but I couldn t not figure out how to create a new directory using Nant. Is there built in functionality to do this? Can I just use the command prompt? I tried ...

Setting write permissions on godaddy hosting

I have godaddy asp.net hosting. Every time I upload the build, it’s a manual laborious task of setting write permissions (to folders) through the web interface. Is this any way to automate this ...

What are solid NMaven or build servers for .NET alternatives?

Maven had a long history and is well supported in the Java world. NMaven has received a less successful start and has never become as popular in the C#/.NET world as its larger cousin was in the Java ...

Gallio and MbUnit in NAnt

I am trying to use Gallio (v3.1)/MbUnit/NCover to run a unit test in my C# code, as part of the build process for my continuous integration system. I can get Gallio.Echo.exe to execute the tests and ...

TeamCity NUnit test result visualisation

Is there any way to produce visual results of NUnit tests from within TeamCity s "Tests" tab, currently my NAnt script outputs an .xml file of the results using the following task: <nunit2 ...

building .net applications without Visual Studio

I m interested to hear about people working with building .net applications using MSBuild, NAnt or similar tools. What are you using, why are you using it instead of the VS IDE? I like to use ...

热门标签