简体   繁体   中英

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:

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

Maybe you have not installed the packages correctly. If you are using NUnit you have to install the NUnit package.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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