It's not possible to use the wildcards for the input files, but you can specify multiple test libraries in the command line:
/nologo /noshadow /framework:net-4.0 /xml:.\test\TestResults.xml .\test\SomeLib1.Test.dll .\test\SomeLib2.Test.dll .\test\SomeLib3.Test.dll
From the official documentation:
An input file may be a managed assembly (.dll or .exe) containing
tests or a project file recognized by NUnit. Out of the box, the
following project types are recognized:
NUnit project files (.nunit)
Visual Studio solutions (.sln)
Visual Studio projects (.csproj, .vbproj, .csproj)
UPDATE
You could use a batch file to run the command for all files in the folder:
for /f %%f in ('dir .\test\ /b /s *.Test.dll') do nunit-console /nologo /noshadow /framework:net-4.0 /xml:.\test\TestResults.xml "%%f"
The dir
command selects names of the files from the .\test\
folder using the *.Test.dll
template. The names are passed to the command (nunit-console
) one by one.