Setup of TFS 2008 for automated testing

automated-testsinstallationmsbuildmstesttfs

I'm confused.

I have TFS installed on my development server, which also doubles as the build machine. The builds work fine when I check-in code, but when the build attempts to run the tests I get an error:

MSBUILD : warning MSB6004: The specified task executable location "C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\MSTest.exe" is invalid.
The previous error was converted to a warning because the task was called with ContinueOnError=true.
Build continuing because "ContinueOnError" on the task "TestToolsTask" is set to "true".
Done executing task "TestToolsTask" — FAILED.

I have searched various forums and several people have suggested that visual studio 2008 test edition has to be installed on the build server. Can anyone confirm that this is true and more importantly whether it will solve me problem? Or can I merely install professional edition?

Thanks, Confused.

Best Answer

Yes - you need either the Developer or the Test edition of VSTS 2008 (Or the Team Suite Edition installed). This is so that the version of MSTest.exe that is able to publish the unit test results back into TFS is installed on the build server.

So long as the people who check in stuff have a license to the appropriate version of Visual Studio Team System for the artifact that they are checking in then you are covered in terms of licensing for it being built on the build server AFAIK. (Though I only have a degree in Physics so I am woefully under-qualified for figuring out Microsoft licensing terms :-) )

Hope that helps,

Martin.