Visual Studio Test Explorer window will not open - unit-testing

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.

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.

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

For me the fix was:
Focus on the test window by Test > Windows > TestExplorer
Using Win+Left / Right to move the window onto an active screen
> ┌┬┐
> Win├┼┤ + Left or Right key
> └┴┘
The same worked for the ReSharper Unit Test Sessions window.

Found this solution here, which is the only thing that worked for me.
Delete all files from this folder:
user\AppData\Local\Microsoft\VisualStudio\11.0\ComponentModelCache

As a brutal fix I actually decided to reset all VS settings (not ideal as you lose all your custom settings like formatting and debugging preferences!).
To do this open up a cmd line and cd to the VS directory (mine was C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE) and type:
devenv.exe /ResetSettings
Hope this helps someone in the future...

This worked for me (VS2015):
Close VS instances.
Delete component model cache folder %LocalAppData%\Microsoft\VisualStudio\14.0\ComponentModelCache . This
wipes out the MEF cache.
Run devenv /setup /ResetSkipPkgs ref. http://msdn.microsoft.com/en-US/library/ex6a2fad(v=VS.80).aspx
Start VS again and see if the problem goes away.
Source

I had the same problem; turned out it was the Corbis Route add-in that was causing an error in combination with the 'I hate regions' add-on, which caused the Test Window to throw an exception.
After removing both add-ins the window reappeared again after a reset of the VS 2013 window layout. (Windows > Reset Window Layout)

A short-cut for those who have lost Test Explorer somewhere !
Ctrl + Q (for quick launch)
You would notice the focus on a small text box on the top right of VS.
Type in "Test Explorer" and select the option that says Test> Windows> Test Explorer

I have VS 2015. I couldn't find my Test Explorer, even with Test->Windows->Test Explorer. I finally figured it was showing on the left instead of the right.

Related

Visual Studio 2017, Intellisense is not working

I just upgraded from VS2015 to 2017, and intellisense highlighting of syntax errors has disappeared completely.
I tried some suggestions found online, mainly Edit->Intellisense->Refresh Local Cache, but that option is not there anymore.
Under Edit->Intellisense there is only Quick info which does nothing when I press it, and toggle completion mode which is greyed out
I'm using Windows 10, C++ project.
Do I need to delete some old files from VS2015 in order for intellisense to work again? like the VC.db file?
Thanks
When IntelliSense stopped working in some files, I just deleted the project cache, restarted Visual Studio and opened the project again. Bear in mind that some minor settings also get reset (like the selected architecture).
Step by step
View => Solution Explorer (in case it isn't already open)
Right click "Solution 'Project name'"
Click "Open Folder in File Explorer"
Close Visual Studio
Show hidden folders (Win10 How-to)
Delete folder ".vs"
Open Visual Studio and project (wait a few seconds)
Hope this helps. -Minding
If you encounter a file in which the intellisense or error list is not functioning properly, look at the top-left corner of the navigation bar and check to see if that file is marked as “Miscellaneous Files”
If it is, the steps to solve the issue is:
Go to the file inside Solution Explorer.
Right-Click file and select Exclude From Project.
Right-Click your project/folder where the file was and click Add Existing Item, and add the file you just removed back into your project.
This should fix whatever issues you're having. (Tip: You can multi-select source/header files, so this does not need to be done one at a time).
Right-click on solution and select Rescan Solution (Visual Studio 2017). This should re-sync IntelliSense with solution data.
Please try to click Tools->Text Editor->C/C+±>Advanced, under IntelliSense, set
Member List Commit Aggressive to True and recheck this issue. Also, set
Use Aggressive Member list for Auto Member list to *False.
In my case, the project was referring to 2 different versions of the same library. I uninstalled one of the versions and intellisense started working.

Where is "pin to source" in Visual Studio 2017?

I can't find the "Pin to Source" functionality in Visual Studio 2017, was it removed?
I Googled it and nothing til now.
This option is also missing for me in VS 2017. I am however able to pin variables by hovering over the variable and clicking the pin icon on the far right of the tooltip that pops up. This accomplishes the same thing for now.
I had the same issue with VS2019. I tried importing a backup setting from prior year (Tool > Import and Export), and turns out my old hotkey for this command still works -- even though I still can't see the Pin To Source in the hotkey mapping window. You can try this work around.

VC++ 2010 does not create C++ projects

I have a really big problem. Visual studio 2010 does not create C++ projects any more. When I click to create a new C++ project (no matter console or Win32) it shows the next dialog, which should allow me to choose project settings, but I cannot do anything in this dialog (when I click Cancel or Finish nothing happens, I can just close this window), also, this dialog does not show all settings, like it had.
Non-C++ project are being created successfully.
I've installed a VC++ express, but it has the same problem. Class creation window also has this problem.
I tryed to reinstall VS, but it had no effect.
I tryed to launch from VS console devenv.exe /setup and devenv.exe /InstallVSTemplates
I tryed this
This is a screeshot of project creation dialog (labels are in russian, but you can open this window in your VS to see the difference)
UPD: translated window:
UPD:
Skype main window has a problem - it does not display any contensts. It seems, that problem is in IE
Yes, these wizard pages use HTML and javascript and are displayed by an embedded WebBrowser.
Your IE install is messed up.

VC++ 2010 IntelliSense autocompletion list disappears too quickly

Any time I scroll throught the intellisense list it disappears very fast, and I have no time to seek and select which I want. I also have Visual Assist X but it doesn't help, it happens with VA enabled and also when disabled.
Any idea which could be the cause and where to config intellisense to remain visible all time until you select something and press TAB/ENTER key? maybe there is some visible delay time config option in some file?
Thanks
Did you try to reset settings?
See here: Visual Studio 2005 Intellisense stopped working after ReSharper installation
Is the problem in all solutions are you are using just one?If so, try to delete .ncb file in solution directory.
Hope this helps.

My ReSharper Gutter Icons for Unit Tests aren't showing

I've installed ReSharper 4.1 and Gallio 3.0.5, but I don't get the gutter icons for unit tests. The tests seem to run fine in the Test Explorer, but I don't have icons next to the tests in code. What could be causing this? I previously had the MbUnit 2.4 ReSharper plugin installed, but it should be uninstalled now.
I did this to get them to show up again. Maybe it was an overkill.
Uninstall ReSharper
Uninstall Gallio
Delete %appdata%\JetBrains folder
Install ReSharper
Start Visual Studio
Close Visual Studio
Install Gallio
Start Visual Studio
I think the key was deleting the %appdata%\JetBrains folder, because there could have been some old plugin files in there.
Another really late answer here, but if you don't have Resharper Code Analysis enabled then the gutter icons won't show up. Had to help a teammate figure this out yesterday.
Maybe a bit long ago, but if someone stumbles on this question...
I had the same problem with Resharper 2016.2
Resharper -> Options -> Code Inspection -> Settings
In my case the project containing the unit test was listed in the "Files and folders" list under "Elements to skipp". After I had removed the project, the icon appeared again.
using Visual Studio 2017, fixed mine using the Code Analysis icon in the upper right corner of the code window missing the gutter test icons.
The analysis was suspended because of the large test file. Had to hit resume twice, then icons finally reappeared.
I've had this issue a number of times when doing clean installs. Sometimes the gallio-resharper plugin installs perfectly, sometimes it does not. I tried the steps above to no avail.
I found this link: http://confluence.jetbrains.net/display/ReSharper/Deploying+plugin
And did the following
Created a Plugins folder in "C:\Program Files (x86)\JetBrains\ReSharper\v5.1\Bin\"
Copied the resharper plugin files from GallioBundle-3.3.458.0.zip\bin\ReSharper into this folder
Suspended and resumed resharper in Visual Studio 10 by using the button in Tools|Options|Resharper
After this, the plugin got enabled.
I am running W7x64 professional.
Hope this can be of help to other people as well. :-)
Suspend and Resume Resharper may work. It was working for me.
Try the following steps, they worked for me,
Open the Resharper installer
check if any item is asking for repare, if yes then click on install.
Now open visual studio and go to resharper option
if the first option is "why dot cover is diabled", click on it.
and enable the dot cover by either taking the free trial or logging in with your resharper id.
It will take few seconds to refresh
You will get back those icons for running or debugging unit test.