-
Notifications
You must be signed in to change notification settings - Fork 247
Coverage is not recorded on some .net framework projects #1001
Comments
When using vstest (I never use it in the real world as it has always been a pain in the butt) I often have to use |
Hey Shaun, thank you for answering. Unfortunately the suggestions didn't help ... Do you may have any other idea? Thanks |
Do the tests use Fakes perhaps? OpenCover and Fakes don't play well as Fakes also uses a profiler and they get in each others way. |
Hey Shaun, no we are not using Fakes either. It is very strange. I am out of ideas. If you have any other suggestion. I would be grateful. Would it help if I send over a part of the coverage report generated? Thanks |
it may do |
Great, here the link to the file. https://file.re/2021/01/28/coverageresults/ |
@OldWarrior3000 sorry nothing is shouting out as an issue Alternatively - if you are able to share the assembly (we can use a private repo if you wish) or a cut down version that replicates the issue and I can attempt to debug it. |
Hey Shaun, |
@OldWarrior3000 did you manage to diagnose the issue? |
Hey @sawilde, the project got de-prioritised for now, so I didn't have time to look into it. I will check as soon as I can. If it suits you, you can close the issue and I will open a new issue once I have some feedback referring to this one. |
Hello!
|
Please provide the following information when submitting an issue.
NOTE Support requests should initially be raised on GitHub discussions
My Framework
My Environment
I have already...
My issue is related to (check only those which apply):
Describe the bug
I am working on a .net framework 4.6 solution and wanted to introduce OpenCover in order to get coverage into the Sonar.
The issue I am experiencing is that for some projects no coverage is detected but for some is. (Though it is just partial not complete)
What I tried to far:
-targetdir
and-searchDir
dotnet vstest
instead of a directvstest
calllog:all
parameter to get more output-register
withuser
,path32
andpath64
or withoutMSTest.TestFramework
to the test projectWith all the above mentioned combinations I get more or less the same result. Strangely it works for another small test project with I created on the side based on .net framework 4.6. I tried with several of the test projects we have and some produce a minor coverage but mostly they produce none. Here an example
Steps to reproduce the problem:
I am using the following command to run opencover.
I am not sure what else I can check. All help is greatly appreciated.
Thanks!
The text was updated successfully, but these errors were encountered: