Skip to content

No lines with coverage information in this diff. #401

Open
@charismats2

Description

@charismats2

I removed some unit tests from the main branch locally and then I generate a coverage report with
dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura /p:CoverletOutput=./maincov.xml
after that I ran this command on windows cmd
diff-cover maincov.xml --html-report diff-coverage.html
but this message appeared
No lines with coverage information in this diff.

I checked the XML file generated by dotnet test and it detects not covered classes properly.
what is wrong in my process?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions