NUnit Task, run test by namespace

TeamCity 8.0 (build 27402)

I have a net project with integration and unit tests, and i need run this test's in two different build configurations.
How i can run NUnit task and restrict the namespace of the tests?

Ex:

<NUnit Condition=" '$(teamcity_dotnet_nunitlauncher_msbuild_task)' != '' " Assemblies="MyProjectTest.dll" NUnitVersion="NUnit2.5.8" NameSpace="MyProjectTest.UnitTest" />
<NUnit Condition=" '$(teamcity_dotnet_nunitlauncher_msbuild_task)' != '' " Assemblies="MyProjectTest.dll" NUnitVersion="NUnit2.5.8" NameSpace="MyProjectTest.IntegrationTest" />

Much thanks.

1 comment
Comment actions Permalink

Hi Daniel,

I don't think NUnit supports test selection based on the namespace. Would adding a Category to the tests or test fixtures work for you?
http://www.nunit.org/index.php?p=category&r=2.6.3

NUnit and TeamCity NUnit runner support filtering by category.

0

Please sign in to leave a comment.