Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How Do I Change The Test Explorer Window To Display Test Source Information Below, Rather Than Beside?

My Unit Test Source Info is being displayed side by side, rather than below the tests:

SideBySide

How do move it so the Test Display is below the tests, rather than beside it?

Update

Interesting, when I actually am debugging a Unit Test, the Test Explorer shows up correctly:

Above-Below

like image 200
Daryl Avatar asked Feb 02 '15 15:02

Daryl


People also ask

How do I view 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.

Where is the test detail summary in Visual Studio?

View Tests and Test Lists in Test Explorer If the Test Explorer pane is not opened in your Visual Studio, you can access this as follows: 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.

How do I add test options in Visual Studio 2019?

Visual Studio 2019 version 16.3 and earlier To specify a run settings file in the IDE, select Test > Select Settings File. Browse to and select the . runsettings file. The file appears on the Test menu, and you can select or deselect it.


2 Answers

It's a very crazy design of VS. I have to try many ways to see why this happens. And finally, this causes by the wrapping up design. There is a line to separate the result and the test when you dock it, take a look at the pictures: When_you_dock_the_test_explorer

drag_the_line_up

like image 129
Jenny Avatar answered Oct 22 '22 03:10

Jenny


What I have found is that Visual Studio automatically decides where to place the divide for this window. You can test this out by undocking the Test Explorer window and then dragging the corner around to resize it. I'm not certain what the ratio is but the details area will snap around either at the bottom or to the right side somewhere around the window being about 1.5 times taller than wider.

This was tested with the community edition of VS 2013. Maybe the "higher" editions allow you to configure this but it doesn't look like the lower editions let you. Hope that helps!

Using 2019 Community Edition, I was able to undock and achieve this.

enter image description here

Then I put the undocked item back into my main IDE window and it remained like that.

like image 20
Frito Avatar answered Oct 22 '22 05:10

Frito