I have developed a build system on MSBuild (NET 3.0) and cc.net to perform continuous integration builds of a Visual Studio 2008 application, however a developer on the team recently added a VSTS unit test project to the mix. Is there any SDK or add-in provided by microsoft to allow this to be compiled on a non-team system build environment?
+2
A:
You can run the tests from the command-line, but it requires that the Test Edition of Visual Studio be installed on your build server:
http://devlicio.us/blogs/derik_whittaker/archive/2008/09/25/clean-build-server-with-mstest-fail.aspx
http://aspadvice.com/blogs/ssmith/archive/2008/03/18/Continuous-Integration-Setup-with-MSTest.aspx
This person is doing MSTest with CC.NET, so it might be helpful:
http://testearly.findtechblogs.com/default.asp?item=630602
In general, this is a main reason why many people choose something like NUnit, xUnit.NET or MbUnit over MSTest.
Cory Foy
2008-12-18 16:31:15
Thanks! Looks like I'll have to track down a copy of test edition.
Rob Hunter
2008-12-18 17:25:32
Just a small correction, in 2008 you can get away with the Profession version of Visual Studio if you just want to run unit tests on a build server. You'll need the Test Edition of VSTS if you want to publish the test results back into TFS. Still a long way from clean build server though.
Martin Woodward
2008-12-18 20:33:22