My ReSharper Gutter Icons for Unit Tests aren't showing

♀尐吖头ヾ 提交于 2019-12-06 01:51:20

问题


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.

  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.




回答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

  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. :-)




回答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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!