Saturday, July 6, 2013

Nunit-Console command line with PsExec with xml and console output

PsExec.exe \\10.172.42.53 -u "MyDomain\MyUserName" -p MyPassword -w "c:\TheMainTestDirectoryOnTheTarget\TestSubDir" "C:\Program Files\NUnit 2.6.2\bin\nunit-console.exe" "MyUnattendedTests.dll" "/xml:TestResults.xml" "/err: StdErr.txt" "/output=TestConsoleOutput.txt"

/xml:TestResults.xml:  The test results in xml format
/err:. Error output.
/output=TestConsoleOutput.txt:  The Console.WriteLine results
-w: specifies the working directory

No comments:

Post a Comment