Specifying multiple test assemblies
How do I add several test assemblies to my nunit command?
Below config in msbuild works when NUnitCommand is nunit-console but fails when running in TeamCity with error:
ERROR JetBrains.BuildServer.NAntLoggers.NUnitLauncher2 - Failed to parse arguments
<Target Name="Test">
<CreateItem Include="test1.dll">
<Output TaskParameter="Include" ItemName="Test1" />
</CreateItem>
<CreateItem Include="Test2.dll">
<Output TaskParameter="Include" ItemName="Test2" />
</CreateItem>
<Exec Command="$(NUnitCommand) @(Test1) @(Test2)" />
</Target>
Please sign in to leave a comment.
Could you please have a look to the documentation of NUnit launcher at
http://www.jetbrains.net/confluence/display/TCD5/TeamCity+NUnit+Test+Launcher
Please consider the following:
<Exec Command="$(NUnitCommand) v2.0 MSIL NUnit-2.4.8 $(Test1)" />
<Exec Command="$(NUnitCommand) v2.0 MSIL NUnit-2.4.8 $(Test2)" />
Stupid me. I had a ' " ' character to much in my $(NUnitCommand). It didn't affect the command when I had only one test assembly but with several assemblies then it failed.