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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With