-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Describe the bug
Steps in README.md fail to produce code coverage report file.
To Reproduce
Steps (from README.md) to reproduce the behavior:
-
Add the
Coverlet.MSBuildNuGet package to the both projects.dotnet add package coverlet.msbuild
-
Install the
ReportGeneratortool:dotnet tool install -g dotnet-reportgenerator-globaltool
-
Run the tests and collect coverage using the dotnet test command with an absolute path.
dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:CoverletOutput="$(pwd)/coverage/"
-
Run the
ReportGeneratortool:dotnet reportgenerator "-reports:HelloWorld.Tests/coverage.opencover.xml" "-targetdir:coveragereport" "-reporttypes:Html"
Expected behavior
There should be a /coverage/coverage.opencover.xml file with some code coverage generated.
Additional context
The coveragereport folder is generated, but since coverage.opencover.xml isn't, neither is the report.
Metadata
Metadata
Assignees
Labels
No labels