TC and unit-testing frameworks
Hi,
I have a couple of questions regarding TC and NUnit/CppUnit:
1. What is the simplest way to grab NUnit results from command line runner in the same way as it is done for MSBuild and sln2005 runners? I know I can use %teamcity.dotnet.nunitlauncher% but is it possible to use nunit-console.exe? (one thing is missed in %teamcity.dotnet.nunitlauncher% is include/exclude parameter (for different configurations we would like to run different sets of tests))
2. The same question for CppUnit (or any other xxxUnit) - how I can integrate the results to be shown on Tests tab with the same info.
Thanks,
Vladimir
Please sign in to leave a comment.
Hello,
TeamCity reports NUnit tests results on-the-fly. We have custom NUnit listener
for that.
TeamCity does not parse NUnit reports at all. For MSBuild/sln2005 we use
TeamCity task
called NUnitTeamCity. Actually it is possible to use NUnit task (it should
be compartible with
msbuild community task).
Using nunit-console not possible in the sense TeamCity report tests.
%teamcity.dotnet.nunitlauncher% is wrapped by task NUnitTeamCity which have
the attribute called 'Assemblies'. The value for it can be easily created
in MSBuild
using both include and exclude patterns.
Please submit the issue on %teamcity.dotnet.nunitlauncher% to our Jira at
http://www.jetbrains.net/jira/browse/TW
2. It is possible to configure TeamCity to include html reports to the
new tab.
Please have a look at
http://www.jetbrains.net/confluence/display/TCD3/IncludingThird-PartyReportsintheBuildResults
Thanks!
--
Eugene Petrenko
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"