Running MStest in cruise control .net build server

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-01 03:19:10

问题


I'm trying to setup cruisecontrol.net to work with our existing projects.

The projects use the visual studio 2008 testing tools (running as .net 2.0).

During the actual build process I get several error messages, most or which are:

Type 'TestClass' is not defined.

I'm assuming that this is because I don't have the testing framework installed on my build server.

I'd rather not just copy bits from my dev machine (that always feels a bit hacky) and I'd also rather not install visual studio on the build sever (that seems like overkill).

Does anyone know where I can get a standalone installer to put these files on my build server?


回答1:


MSTest requires Visual Studio. You'll need to install it on your build machine (or use a more lightweight testing framework!)




回答2:


You can get hold of the MSTest.exe and associated libraries on a redistributable disk image under the title of "Visual Studio Agents".

Instructions:

  1. Download and run setup from the disk
  2. Run the test agent installer
  3. No need to install the agent as a service or configure the test agent as you just want to run it from the command line.
  4. The MSTest tool will now be installed somewhere like "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE" which is the same path as for visual studio.


来源:https://stackoverflow.com/questions/689025/running-mstest-in-cruise-control-net-build-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!