My ReSharper Gutter Icons for Unit Tests aren'

2019-04-07 17:28发布

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.

5条回答
Melony?
2楼-- · 2019-04-07 17:44

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楼-- · 2019-04-07 17:50

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

  1. Created a Plugins folder in "C:\Program Files (x86)\JetBrains\ReSharper\v5.1\Bin\"
  2. Copied the resharper plugin files from GallioBundle-3.3.458.0.zip\bin\ReSharper into this folder
  3. 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. :-)

查看更多
男人必须洒脱
4楼-- · 2019-04-07 18:01

I did this to get them to show up again. Maybe it was an overkill.

  1. Uninstall ReSharper
  2. Uninstall Gallio
  3. Delete %appdata%\JetBrains folder
  4. Install ReSharper
  5. Start Visual Studio
  6. Close Visual Studio
  7. Install Gallio
  8. Start Visual Studio

I think the key was deleting the %appdata%\JetBrains folder, because there could have been some old plugin files in there.

查看更多
你好瞎i
5楼-- · 2019-04-07 18:04

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.

查看更多
可以哭但决不认输i
6楼-- · 2019-04-07 18:05

Suspend and Resume Resharper may work. It was working for me.

查看更多
登录 后发表回答