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 Include="Test2.dll">
    <Output TaskParameter="Include" ItemName="Test2" />
  <Exec Command="$(NUnitCommand) @(Test1) @(Test2)" />  

Comment actions Permalink

Could you please have a look to the documentation of NUnit launcher at

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)" />  

Comment actions Permalink

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.


Please sign in to leave a comment.