Closed sergeprozorov closed 3 years ago
ok, it seems that the dotCover modifies the assembly to gather the coverage results, which make sense. The problem it seems that dotCover conflicts with AspectInjector somehow.
Thanks for reliable way get it
@lanegoolsby , @sergeprozorov please test https://github.com/pamidur/aspect-injector/releases/tag/2.5.1-pre1
@pamidur Yes, the issue appears to be fixed. I have checked it on a couple of projects (on AspectInjector.SampleApps too). Code coverage works now in the both VS UI and dotCover CLI. Thank you, great work!
this 2.5.1-pre1 should be stable despite it is pre-release, So I guess you might safely use it until full release is out. Possible issues are only with debug process:
I have experienced none of above tho. Please report if find any bugs))
Hello,
The issue might be related to #107, but the error message I see is different. Additionally, I provide a reliable way to reproduce it. The scenario is following
Run the unit tests from AspectInjector.SampleApps with code coverage. You can see that code coverage report is empty.
If you run a test session without CacheTests with code coverage, you will see some results there.
In order to see the error message itself being produced by dotCover, I have used the approach described here, because it is the simplest for me. The message is following.
Additionally, I would like to mention that it is not only dotCover that fails to collect code coverage. One of my colleagues has also tried OpenCover with a similar result. It is pity but this issue is a blocker for us currently, as it breaks our CI workflow.