Tests magically disappeared from Test Explorer pane in Visual Studio 2013

前端 未结 5 1273
后悔当初
后悔当初 2021-01-02 02:00

I have created a unit test project in VS2013, and I\'m using it to create a test suite for my SQL Server 2012 database.

I have created 4 test classes so far and ever

相关标签:
5条回答
  • 2021-01-02 02:10

    Visual Studio Test Explorer has icons that control what tests are shown, make sure what you want to see is selected. For example, if you unselect the green checkbox, tests will disappear as they pass.

    0 讨论(0)
  • 2021-01-02 02:14

    Resolved a similar issue by adding the NuGet package Microsoft.NET.Test.Sdk, in addition to MSTest.TestAdapter and MSTest.TestFramework for a .NET Core Unit Test project. There were no errors on build, but the Output Window with Tests selected from the dropdown menu showed additional logging.

    0 讨论(0)
  • 2021-01-02 02:15

    I just had this very same problem and for me the solution was to go to Tools -> Extensions and updates, uninstall NuGet package installer for 2013 and re-install it.

    0 讨论(0)
  • 2021-01-02 02:27

    Are you using nUnit? I've just had a similar situation moving to a new pc, causing all existing tests to disappear.

    Go to Tools -> Extensions and updates -> Select Online on the left -> enter in the search box top right 'nunit test adapter' and install it.

    One rebuild later and the tests appeared again.

    0 讨论(0)
  • 2021-01-02 02:34

    I just had the exact same thing happen to be. Build, Rebuild, Clean Build, the Test Explorer couldn't list for me my unit tests!

    This came after I changed the unit test project's platform target from "any CPU" to x64. I switched it back to "any CPU", built, and they appeared again. How frustrating.

    0 讨论(0)
提交回复
热议问题