Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tests magically disappeared from Test Explorer pane in Visual Studio 2013

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!

like image 308
user884248 Avatar asked Dec 14 '13 18:12

user884248


People also ask

How do I add a test in test Explorer?

If Test Explorer is not visible, choose Test on the Visual Studio menu, choose Windows, and then choose Test Explorer (or press Ctrl + E, T). As you run, write, and rerun your tests, the Test Explorer displays the results in a default grouping of Project, Namespace, and Class.

How do I enable test in Visual Studio?

Start, pause, and stop. To enable Live Unit Testing, select Test > Live Unit Testing > Start from the top-level Visual Studio menu.

Where is the test detail summary in Visual Studio?

View Tests and Test Lists in Test Explorer in Visual Studio 2015 and 2017 - Test -> Windows -> Test Explorer; in Visual Studio 2019 and later - Test -> Test Explorer; or use keyboard shortcut Ctrl + E, T.


1 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

like image 192
MikeZ Avatar answered Oct 04 '22 01:10

MikeZ