Reputation: 3109
How do i use the correct Mstest.exe in the Build?
My configuration:
Then I installed :
On Build Compile is succesfull, when testing msbuild "hangs" ...
I want to use VS2012 mstest (11.0) and not the VS2010(10.0)
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\mstest.exe
instead of
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\mstest.exe
This causes the build to hang. When executing the 11.0\mstest.exe on the build server it is working correct.
Upvotes: 2
Views: 730
Reputation: 3109
I edited the Build File where you can specify the path for mstest in a parameter, I called it MStestFolder.
The folder property
<x:Members>
<x:Property Name="MStestFolder" Type="InArgument(x:String)" />
</x:Members>
3 times i had to specify the toolpath for mstest
Mstest tag
<mtbwa:MSTest .... ToolPath="[MStestFolder]" .../>
In the Build you have to specify the MStestFolder in the Misc tab :)
Upvotes: 2