When I run OpenCover.Console.exe
, it runs tests, but code coverage is failing:
What's wrong? How to fix it?
Make sure that build settings Debugging information
for that project is set to Full
(Project->Properties->Build->Advanced).
The same can be done by modifying .csproj
file and adding <DebugType>Full</DebugType>
node under <PropertyGroup>
.
Source: Setting up Coveralls with OpenCover for a .NET Core project