Skip to content

MergeWith does not respect framework suffix in output file #885

@jpdillingham

Description

@jpdillingham

I'm testing two binaries in my pipeline with the following (truncated) options:

dotnet test -p:CollectCoverage=true -p:CoverletOutput="../coverage.json"
dotnet test -p:CollectCoverage=true -p:MergeWith="../coverage.netcoreapp3.1.json" -p:CoverletOutput="../opencover.xml"

This produces an intermediate coverage file coverage.netcoreapp3.1.json and a final report opencover.netcoreapp3.1.json

Omitting netcoreapp3.1 in the MergeWith option value leads to a result which is not merged.

My expectation would be that the output files are either produced with the framework suffix and that the MergeWith option would respect this suffix (requiring only coverage.json as input to function properly), or that (ideally) the framework suffix is not added at all.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions