Skip to content

Coverage 0% for implicit used netstandard project #1034

@schrufygroovy

Description

@schrufygroovy

I have a .NET core web API solution, that is covered by .NET integration tests (https://docs.microsoft.com/en-us/aspnet/core/test/integration-tests).

The web API solution is using some own library projects, that are netstandard projects and part of the solution. PDB file for the library does exist.

When I try to figure out the coverage then:

  • the coverage for the controllers of the API and whole API project is correct.
  • even the coverage of another "shared" API project that is implicitly used, is correct.

The coverage for the netstandard library that is used by the API is 0 %. Even though the exact line in the controller, that uses the library is marked as covered.

I have reduced the solution to the bare minimum and can still reproduce the issue:
https://github.com/schrufygroovy/coveragenotworking

Metadata

Metadata

Assignees

No one assigned

    Labels

    untriagedTo be investigated

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions