-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Cover with OpenCover" get disabled sometimes. #120
Comments
+1 I was able to use this tool once and it worked well, but then I ran into the option being greyed out... clean and rebuild did not help. Restarting visual studio lets me run the tool again, but I'm still looking for a less painful solution |
This is a hard one, because I also notice it once in a while, but mostly not. So it's not easy to debug this. I'll add more logging on the enabling/disabling of the button |
Been using this extension for days now and haven't seen it again. Heisenbug |
Using the latest github-built version (built it from code myself) and it still keeps on happening. |
I can reproduce the issue without a problem when I build the projects with ReSharper Build & Run. Maybe ReSharper Build & Run uses a different event to tell VS that the build has finished. |
I also see this with build of latest version (do not have ReSharper at all) |
Side note: Breakpoint over all code point where it is set to disabled? This may not be usefull though... :( Occationally after I have run OpenCover I am running all unit test with Visual Studio to see if they pass and usually (for me it was always so far) after that it becomes disabled. Once it happened when OpenCover UI completes while tests are selected, but wasn't able to reproduce it that way. Edit: Now it remained enabled eventhough I have run the tests with Visual Studio. |
I was able to use it when I change the Reshaper build to VS build. As @gregor4005 mentioned it is using the VS build event to trigger the coverage. So as a Temporary Fix, Change the build to "VS build" whenever you use the extension. |
Hi,
Sometimes, not sure why, the "Cover with OpenCover" get disabled. The only workaround I found for this is to restart Visual Studio:
Note that in the above image no test execution is made.
Pressing the refresh button doesn't help too.
The text was updated successfully, but these errors were encountered: