Tests magically disappeared from Test Explorer pane in Visual Studio 2013

Viewed 11029

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 everything worked fine. When I created the 5th - magic! All tests disappear from the test explorer window.

I tried rebuilding the project - didn't work. Rebuilt the database project too; didn't work. Created a new unit testing project with a single unit test inside it - doesn't work.

Has this happened to anyone? Does anyone know what to do? Please help!

6 Answers

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.

enter image description here

Late to the party, but make sure you have the chemical bottle icon selected. If there's a failure it may have defaulted to failures (the X) icon selected in the test explorer window. Gets me every time.

I had a similar problem, the test appeared again after deleting the hidden .vs folder in the project build folder and then restarting visual studio.

Related