visual-studiomstestbuild-server

Can I use mstest.exe without installing Visual Studio?


I want to use mstest.exe to run my unit test on build server, but I don't want to install Visual Studio on the build server. Can I just install MSTest without Visual Studio?


Solution

  • It is possible to run mstest.exe without visual studio.
    Download one of the Agents for Visual Studio ISO's below and install the Test Agent on the server:

    This installs everything needed for running mstest.exe from the command line and is much lighter weight than visual studio. ~500mb download and around ~300mb to install just the test agent if I remember correctly.