Visual Studio required to run MSTest test on Team

2019-03-14 01:27发布

问题:

We are setting up a Team City build server. On previous VS 2008 projects a full version of Visual Studio has been installed on the build server.

We are now starting a VS 2010 project.

Is it possible to run MSTest tests on the Team City build server without installing Visual Studio?

回答1:

  1. Download the Visual Studio Agents 2010 ISO: http://www.microsoft.com/en-us/download/details.aspx?id=1334
  2. Mount/Extract the files and copy them to the agent server
  3. Run AutoRun and select to install Microsoft Visual Studio Test Agent 2010
  4. Install using the default settings
  5. Cancel out of the "configuration" dialog (you don't need the actual Agent running, just the installed libraries)

Your MSTest build step should run just fine now.