问题
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.
回答1:
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.
回答2:
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.
回答3:
Another really late answer here, but if you don't have Code Analysis enabled then the gutter icons won't show up. Had to help a teammate figure this out yesterday.
回答4:
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. :-)
回答5:
Suspend and Resume Resharper may work. It was working for me.
回答6:
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.
来源:https://stackoverflow.com/questions/449853/my-resharper-gutter-icons-for-unit-tests-arent-showing