Open pablocar80 opened 6 years ago
We're getting the same error since we've updated our machines to the latest windows 10 updates. I'm guessing the issue is with OpenCover and not AxoCover but nothing has been reported on their Issues page yet.
I just updated to latest VS, tried AxoCover and it still worked. I restarted the machine, and reinstalled AxoCover but it still works as before. I am on latest windows 10 too.
I see some errors from 4 users in telemetry, saying "This program is blocked by group policy. For more information, contact your system administrator", however it seems to run the tests for you - at least without coverage, so that should not be the issue.
I will try with another machine tomorrow.
Our tests still run successfully, its just the coverage that doesn't. Which is why I'm thinking its a problem with OpenCover and not AxoCover.
I was able to reproduce it on my other machine. You are right it is indeed OpenCover. The problem is that it's DLL registration does not work anymore - probably because of some change in Windows. Fortunately I have found a workaround for now:
Now your coverage will run again. I will check at the weekend to make this automatically in AxoCover, while OpenCover gets fixed. Or check if I can fix OpenCover myself.
This worked for me
Also worked for us. Do not forget to try both x64 or x86 if the former doesn't work.
Registering by hand worked indeed. The issue itself appears to have something to do with per-user registration (on Windows 7), which I didn't know existed before, and not with Visual Studio itself.
The OpenCover command line tool also supports registering and unregistering using the administrator account using the -register:Path32
and -register:Path64
instead of -register:user
.
Thanks It worked for me as well.
@axodox It is quite possible that in some cases #207 is the reason which should be fixed withing #208 PR + human intervention on his settings tab in AxoCover
Thanks! This saved me. I was struggling since morning with this.
This worked for me too! Thank you!
this works for me! thanks!
Hi, I updated VS to version 15.7.5 released a few days ago and AxoCover stopped being able to show the coverage. To solve this, I created a new testing project with only the following test:
I already uninstalled completely VS and installed it again. AxoCover worked for a while, and then stopped working again. Here is the detailed output: