Search code examples
c#.net-coreopencover

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?


Solution

  • 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