I am creating an MSBuild project to run some NUnit test using the MSBuild Community Tasks Project .
With these settings, I can run NUnit tests:
<Target Name="Test" DependsOnTargets="Build"> <CreateItem Include="$(ProjectTestDir)\$(ClassLibraryOutputDirectory)\*.Tests.dll"> <Output TaskParameter="Include" ItemName="TestAssembly" /> </CreateItem> <NUnit Assemblies="@(TestAssembly)" /> </Target>
... but how can I run only certain tests - say, those that have a certain category? We added different categories to our tests - some of them ran all the time, some of them worked only in nightly builds, etc.
I donโt see any settings allowing me to filter this, or am I missing something? Are some of you faced with this problem and somehow decided? He should not use this msbuild community task project.
source share