Skip to content

Normalize File Paths In Generated Reports (Linux / Windows) #649

Closed
@abbotware

Description

@abbotware

I run unit tests on windows and linux. This produces coverage report files that have different path roots:

C:\src\build\file.cs
vs
\var\src\build\file.cs

When the reports are merged it thinks there are 2 sets of functions. Instead of 100% code coverage, i have 50% coverage.

Perhaps a new command line option is needed to normalize the path:

coverlet -stripFromPath=C:\src\
coverlet -stripFromPath=\var\

That way both reports will then have a normalized file

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionThis issue is a question

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions