Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OpenCover keeps saying "No results, this could be for a number of reasons" for .NET Core

When I run OpenCover.Console.exe, it runs tests, but code coverage is failing: OpenCover Error

What's wrong? How to fix it?

like image 701
Artavazd Balayan Avatar asked Dec 16 '25 11:12

Artavazd Balayan


1 Answers

Make sure that build settings Debugging information for that project is set to Full(Project->Properties->Build->Advanced). debugging infromation

The same can be done by modifying .csproj file and adding <DebugType>Full</DebugType> node under <PropertyGroup>. Change csproj

Source: Setting up Coveralls with OpenCover for a .NET Core project

like image 195
Artavazd Balayan Avatar answered Dec 19 '25 06:12

Artavazd Balayan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!