是否可以在不安装Visual

是否可以在不安装Visual

本文介绍了是否可以在不安装Visual Studio的情况下使用mstest.exe?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用mstest.exe在构建服务器上运行我的单元测试,但是我不想在构建服务器上安装Visual Studio.我可以在没有Visual Studio的情况下安装MSTest吗?

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?

推荐答案

可以在不使用Visual Studio的情况下运行mstest.exe.
下载下面的Visual Studio ISO代理之一,并在服务器上安装测试代理:

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:

Visual Studio 2017 (127MB磁盘空间,小于下载空间)
Visual Studio 2015 (128MB设置,需要2GB磁盘空间)
Visual Studio 2012 (224MB)
Visual Studio 2013 (287MB)
Visual Studio 2010 (515MB)

Visual Studio 2017 (127MB disk space, less than that for download)
Visual Studio 2015 (128MB setup, 2GB disk space required)
Visual Studio 2012 (224MB)
Visual Studio 2013 (287MB)
Visual Studio 2010 (515MB)

这将安装从命令行运行mstest.exe所需的所有内容,并且比Visual Studio轻得多.如果我没有记错的话,大约需要500mb下载,大约300mb左右只能安装测试代理.

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.

更新

对于VS 2017之前的版本,请查看此处:

For versions older than VS 2017, look here:

https://www.visualstudio.com/vs/older-downloads/

这篇关于是否可以在不安装Visual Studio的情况下使用mstest.exe?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 13:54