Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Test Explorer window will not open

For some reason I can't open the test explorer window in Visual Studio 2012. I click Test->Windows->Test Explorer and nothing happens...

This problem may have been caused by recently uninstalling DotCover. I did this because my licence expired and I was having issues running tests without it (context menus weren't working).

Any suggestions or advice much appreciated!

Thanks.

like image 229
WheretheresaWill Avatar asked Jul 12 '13 10:07

WheretheresaWill


People also ask

How do I open the test Explorer window in Visual Studio?

Run tests 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?

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

What is test Explorer in Visual Studio?

The Test Explorer in Visual Studio discovers and runs unit tests from Visual Studio or third-party test projects, including Test Studio tests and test lists. In this article you can find useful details for running the Test Studio tests from the Test Explorer: Open Test Explorer and view Test Studio tests and test lists.


2 Answers

In VS2012, Test Explorer has a bug in that the window doesn't get focus when you click Test > Windows > Test Explorer. Instead, the menu item has no effect unless the window was complete hidden, in which case it is displayed.

The bug means that if Test Explorer is collapsed with Auto Hide, the menu item does nothing. Check that Test Explorer isn't in an auto-hide tab somewhere off to the left or right (i.e. in a tab with text written vertically, like Server Explorer and Toolbox are by default).

Update: The bug is fixed in VS2013.

like image 117
Edward Brey Avatar answered Sep 21 '22 19:09

Edward Brey


Window -> Reset Window Layout fixed the problem for me.

like image 37
Heather Avatar answered Sep 21 '22 19:09

Heather