简体   繁体   English

Visual Studio测试资源管理器要求全部运行

[英]Visual Studio test explorer requirements run all

When I run tests in test explorer individually they all run without errors. 当我分别在测试资源管理器中运行测试时,它们都无错误运行。

When I click on "Run All" I get varying test that fail. 当我单击“全部运行”时,我得到了各种失败的测试。

My question: Does anybody know what the minimum requirements regarding tests to be able to run them with "Run All"? 我的问题:是否有人知道要使用“全部运行”运行测试的最低要求是什么? Like maybe they all have to in a certain way with a certain command? 也许他们都必须以某种方式使用某种命令?

Running test manually one by one or run all has nothing to do with your tests being failed. 手动逐个运行测试或全部运行与测试失败无关。 You need to check the failure reason for each test and solve it. 您需要检查每个测试的失败原因并解决。

Maybe you can post the error messages here so we can help you better. 也许您可以在此处发布错误消息,以便我们更好地帮助您。

I discovered that I had a static variable still containing a value other than that expected. 我发现我有一个静态变量,其中包含的值仍然超出预期值。 Now the outcome is always the same regardless of how I run it. 现在,无论我如何运行,结果始终是相同的。

Sorry for troubling you all 抱歉给大家带来麻烦

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM