I am trying to run NUnit tests from command line and trying to save the results under TestResults
folder. I have tried using following commands, but nothing has created the test results under intended folder. Rather the test results got created under the current running folder only!
cmd /k nunit3-console.exe test\bin\Debug\test.dll --where cat=test --labels=All --work=TestResults --out=TestResult.txt --result=TestResult.xml;format=nunit2
cmd /k nunit3-console.exe test\bin\Debug\test.dll --where cat=test --labels=All --work=TestResults --out=TestResults\TestResult.txt --result=TestResults\TestResult.xml;format=nunit2
cmd /k nunit3-console.exe test\bin\Debug\test.dll --where cat=test --labels=All --out=TestResults\TestResult.txt --result=TestResults\TestResult.xml;format=nunit2
Likewise I have also tried changing the default test result filename from TestResult.xml
& TestResult.txt
to Sample.xml
& Sample.txt
by updating the --result
& --out
parameters, but no luck.