简体   繁体   English

VS2015 Test Explorer无法运行或显示测试结果

[英]VS2015 Test Explorer doesn't run or show test results

The Test Explorer shows all the tests in my project correctly, so my problem doesn't match the search-results I keep finding about tests not showing up, but when I "Run All", or select and run a single test, nothing is run. 测试资源管理器正确地显示了我项目中的所有测试,所以我的问题与搜索结果不匹配我一直发现测试没有显示,但是当我“全部运行”,或选择并运行单个测试时,没有什么是跑。 If I debug the tests, they do step into each test. 如果我调试测试,他们会进入每个测试。

测试清单

The output in the Test window says: 测试窗口中的输出显示:

------ Run test started ------
NUnit VS Adapter 2.0.0.0 executing tests is started
Loading tests from C:\Project\bin\Debug\Project.Tests.dll
Run started: C:\Project\bin\Debug\Project.Tests.dll
NUnit VS Adapter 2.0.0.0 executing tests is finished
========== Run test finished: 0 run (0:00:03.2384917) ==========

I have the following NuGet packages installed in this project: 我在这个项目中安装了以下NuGet包:

  • NUnit NUnit的
  • NUnit.Runners NUnit.Runners
  • NunitTestAdapter NunitTestAdapter
  • NUnit.Console NUnit.Console

Maybe you have not installed the packages correctly. 也许你没有正确安装包。 If you are using NUnit you have to install the NUnit package. 如果您使用的是NUnit,则必须安装NUnit软件包。

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

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