Skip to content

Branch coverage is not completely exported in OpenCover format #769

Closed
@costin-zaharia-sonarsource

Description

When using the OpenCover format (--format opencover) the bec (branch exit count) and bev (branch exit visits) are not populated and this will prevent other tools to properly read the branch coverage details.

Current behavior:

As far as I can tell these are hard-coded to 0: https://github.com/tonerdo/coverlet/blob/0cc2548b27c6d7f030095d40d81517d4457fcc80/src/coverlet.core/Reporters/OpenCoverReporter.cs#L124

Expected behavior:

bec and bev are contain the branch exit counts and visits.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementGeneral enhancement requesttenet-reportersIssue related to coverage output files(reporters)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions