I am trying to use NUnit Runners 2.6.4 to run all test assemblies in my test folder. My current command looks like this:
/nologo /noshadow /framework:net-4.0 /xml:.\test\TestResults.xml .\test\*.Test.dll
Unfortunately Nunit just throws a System.ArgumentException: Illegal characters in path.
Is there anyway I can achieve this?
You can use following PowerShell command (for NUnit3, for NUnit2 change runner name):
PS> nunit3-console (ls -r *\bin\Debug\*.Tests.dll | % FullName | sort-object -Unique)
Command from previous answer runs each test assembly in separate nunit process synchronously. Presented here command runs all test assemblies in single nunit instance, which allows to leverage engine built-in parallel test run.
Remarks
Remember to tweak directory search pattern. Given example runs only assemblies ending with .Tests.dll
and inside \bin\Debug
directories.
Be aware of Unique
filtering - you may not want to have it.