-
Bug
-
Resolution: Fixed
-
Major
-
None
We have environments where the test projects live in a space embedded path (C:\Program Files\blah) and thus we need to quote the various arguments to MSTest such as /testcontainer: etc.
It looks as if adding double quote to any of these arguments then causes confusion and MSTest.exe itself can not be found.
Below is sample output of the error. Note in this case we had moved the tests to c:\temp\ to help isolate the cause.
Path To MSTest.exe: C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\MSTest.exe
Result file was not found so no action has been taken. file:/c:/Slave/$civJenkinsCustomWorkspaceRoot/SIT-(POS)(StartupSmokeTests)-RunTest/%22c:/temp/TestProjects/StartupSmokeTests.trx/%22
Executing MSTest: cmd.exe /C "C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\MSTest.exe" /resultsfile:\"c:\temp\TestProjects\StartupSmokeTests.trx\" /testcontainer:\"c:\temp\TestProjects\StartupSmokeTests.orderedtest\" && exit %%ERRORLEVEL%%
[SIT-(POS)(StartupSmokeTests)-RunTest] $ cmd.exe /C "C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\MSTest.exe" /resultsfile:\"c:\temp\TestProjects\StartupSmokeTests.trx\" /testcontainer:\"c:\temp\TestProjects\StartupSmokeTests.orderedtest\" && exit %%ERRORLEVEL%%
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.