Skip to content

Async methods excluded from coverage after updating to 2.8.1 #794

@Malivil

Description

@Malivil

Using coverage format "OpenCover" and the coverlet.msbuild package
In version 2.8.0 an async method in my Web API class shows no coverage (because I haven't written tests yet):
BeforeCoverage

In version 2.8.1, the same method is just excluded from coverage entirely:
AfterCoverage

The coverage.opencover.xml shows a complete missing section for the method:
Diff

I do not have a minimal reproduction example but if needed I can probably make one.
May be related to 528956b

Metadata

Metadata

Assignees

No one assigned

    Labels

    as-designedExpected behaviourtenet-coverageIssue related to possible incorrect coverage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions