You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 15, 2021. It is now read-only.
have looked at the opencover output xml file in an attempt to resolve the issue.
reviewed the current issues to check that the issue isn't already known.
My issue is related to (check only those which apply):
no coverage being recorded
32 or 64 bit support
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:
Upgrading to the latest version of OpenCover
Changing between vstest and mstest (vstest shows better results. Mstest doesn't return any)
Experimenting with -targetdir and -searchDir
Changing to dotnet vstest instead of a direct vstest call
Creating a new independent solution based on .net framework (for which it works)
Adding log:all parameter to get more output
Checking the xml coverage report and the unit test DLL's and referenced project DLL's are not included.
Different combinations of -register with user, path32 and path64 or without
Adding MSTest.TestFramework to the test project
Checked full pdb support
Numerous recompilations with Debug and Release
With 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
Test Run Failed.
Total tests: 709
Passed: 682
Failed: 25
Skipped: 2
Total time: 15,2156 Minutes
Committing...
Visited Classes 4 of 3583 (0.11)
Visited Methods 7 of 25690 (0.03)
Visited Points 28 of 235467 (0.01)
Visited Branches 11 of 39005 (0.03)
==== Alternative Results (includes all methods including those without corresponding source) ====
Alternative Visited Classes 4 of 5438 (0.07)
Alternative Visited Methods 7 of 33052 (0.02)
Steps to reproduce the problem:
I am using the following command to run opencover.
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:
-targetdirand-searchDirdotnet vstestinstead of a directvstestcalllog:allparameter to get more output-registerwithuser,path32andpath64or withoutMSTest.TestFrameworkto 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
Test Run Failed. Total tests: 709 Passed: 682 Failed: 25 Skipped: 2 Total time: 15,2156 Minutes Committing... Visited Classes 4 of 3583 (0.11) Visited Methods 7 of 25690 (0.03) Visited Points 28 of 235467 (0.01) Visited Branches 11 of 39005 (0.03) ==== Alternative Results (includes all methods including those without corresponding source) ==== Alternative Visited Classes 4 of 5438 (0.07) Alternative Visited Methods 7 of 33052 (0.02)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!