Code coverage is showing 0 % but same code and settings. Earlier it was showing > 0 % value in code coverage in C# .net Framework 4.7.1

Code coverage is showing 0 % but same code and settings earlier it was showing > 0 % value in code coverage in C# .net Framework 4.7.1.
NunitTestEXE - nunit3-console.exe
OpenCoverExe- Opencover.console.exe
WARN: The code coverage report doesn’t contain any coverage data for the included files

NOTE: OpenCover.xml file does not contain main project file, it’s showing only Testproject data.

@Abhishek_Priyadarshy the following two guides would be a good place to start:

  1. the wiki page describing how code is classified as test or product code,

  2. the code coverage troubleshooting guide

I have gone through multiple replay and link but could not find solution.
I tried <‘DebugType>pdbonly<’/DebugType>" in csproj file main project and this has resolved the issue.

this is just for information, if similar issue exists then this will be helpful.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.