TeamCity NUnit [TestCase]
Hi Everyone
I am using TeamCity 5.0.2 (build 10784). I use an MSBuild script to build and execute tests. I noticed today that any tests marked as [TestCase] (i.e. the new version of RowTest) are not executed when the build runs. The relevant command in the MSBuild script is:
<NUnit Assemblies=".\Test\Test.Mcl.Common\bin\Debug\Test.Mcl.Common.dll" Platform="x86" />
The log says:
Retail.DepartmentTestFixture (Test.Mcl.Business.dll: Test.Mcl.Business) Test history - DepartmentTestFixture does not have any tests
when in fact this fixture contains [TestCase] tests.
Does anyone know if it is possible to get [TestCase] working with TeamCity?
Thanks
Nick.
Please sign in to leave a comment.
Hi Nick,
Please check all project references to NUnit 2.4.8?
NUnit 2.5.3 is installed. I am not sure how to tell which version of NUnit TeamCity is using though. Any ideas?
Nick.
Nick,
Please check you have specified proper NUnit version in the NUnit task. You need to add NUnitVersion="NUnit-2.5.3" attribute to <NUnit> task in the msbuild script.
See http://confluence.jetbrains.net/display/TCINT/Using+NUnitTeamCity+task+in+MSBuild+Build+Script for details.