I'm just starting to play around with Jenkins. I'm working with a simple test project - single .sln, with single .csprog, with a single unit test class.
Build is working fine, but I can't get the tests to run.
I've installed, and attempted to configure the vstest plugin, and it doesn't even seem to be attempting to use the path I've provided.
For "Path to VSTest", I've supplied "D:\Microsoft Visual Studio 11.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe"
But when I run it, I get errors:
Done Building Project "D:\Program Files (x86)\Jenkins\jobs\cruncher\workspace\CrunchersTest\CrunchersTest.csproj" (default targets).
Done Building Project "D:\Program Files (x86)\Jenkins\jobs\cruncher\workspace\Crunchers.sln" (default targets).
Build succeeded.
0 Warning(s)
0 Error(s)
Time Elapsed 00:00:00.69
Path To VSTest.console.exe: vstest.console.exe
Executing VSTest: cmd.exe /C C:\Windows\TEMP\vstest4404038758955926556.bat && exit %ERRORLEVEL%
[workspace] $ cmd.exe /C C:\Windows\TEMP\vstest4404038758955926556.bat && exit %ERRORLEVEL%
D:\Program Files (x86)\Jenkins\jobs\cruncher\workspace>vstest.console.exe "Crunchers.dll" /Enablecodecoverage /UseVsixExtensions:false /Framework:framework45 /Logger:trx
'vstest.console.exe' is not recognized as an internal or external command,
operable program or batch file.
Build step 'Run unit tests with VSTest.console' marked build as failure
Finished: FAILURE
I managed to copy off the generated batch file, during a build (BTW, is there an option to tell Jenkins not to delete the generated batch file? It could help in running down problems).
In any case, when I run the generated batch file from a command line, after having run vcvarsall.bat, it finds vstest.console.exe without a problem. But I cannot set these environment variables globally, and I didn't need to set them when running msbuild.exe via it's plugin, I simply provided a path to msbuild. I've provided the correct path to vstest,console.exe, but it doesn't seem to take.
The doc page simply says provide a path to the exe, and that's what I'm doing.
Color me frustrated.