TeamCity running Nunit [TestCase]

Hi,

When TeamCity executes my nant build script it seems to ignore nunit tests marked as [TestCase].  If I refactor the same test to be [Test] then it runs ok and the test passes.

TeamCity : 5.1.2
Nunit: 2.5.5

Attached is an example c# project which repeats the problem, the build file, and the screenshots for the setup of TeamCity - no VCS is configured.

TeamCity is configured to point to the same version of nunit.

Running the same test via the nunit gui works ok.


Thanks in advance for help or suggestions.

G



Attachment(s):
Testing.zip
2 comments

By default NAnt uses NUnut 2.2.x for <nunit2> task. You may add attrubte or property to make TeamCity switch NUnit runner version for you.
Plese see documentation page at  http://confluence.jetbrains.net/display/TCD5/NUnit+for+MSBuild

0

Thanks Eugene,

Simply needed to add <property name="teamcity.dotnet.nant.nunit2.version" value="NUnit-2.5.5" /> to the build file.

Best Regards,

G

0

Please sign in to leave a comment.