每次我构建本地解决方案时,都可以在Visual Studio 2017中关闭自动运行测试吗?

时间:2018-07-03 17:57:01

标签: visual-studio-2017

我有一个包含许多测试的解决方案,但是我不想每次构建时都自动运行测试。在Visual Studio 2017中有没有办法做到这一点?

我已经检查了工具/选项。我已经在Stack Overflow中搜索了此问题,但找不到此问题。

我还检查了解决方案属性,但是什么也没看到。

此问题不是此堆栈溢出问题How to Prevent automatic test execution的重复,因为它处理的是Web门户,而不是Visual Studio 2017 IDE本身。

2 个答案:

答案 0 :(得分:2)

您是否尝试过从“测试资源管理器”窗口的工具栏中禁用“构建后运行测试”?它应该是工具栏上的第一个按钮。

要打开“测试资源管理器”窗口,请转到“测试”->“ Windows”->“测试资源管理器”。

答案 1 :(得分:2)

您首先转到主菜单中的[assembly: ExportRenderer(typeof(SomeApp.CustomRenderers.DialogSelectionItem), typeof(SomeApp.iOS.CustomRenderers.DialogSelectionItemRenderer))] namespace SomeApp.iOS.CustomRenderers { public class DialogSelectionItemRenderer : ViewCellRenderer { // some customizations } } ,然后转到Test,然后在WindowsWindows按钮enter image description here