Closed sa-y-an closed 7 months ago
Describe the bug I am getting 100% branch coverage but 0% line coverage Can anyone tell me how is this possible ?
Expected behavior Both line and branch coverage should be 0
Configuration (please complete the following information): Please provide more information on your .NET configuration:
dotnet test --collect:"XPlat Code Coverage" -c Release -f net6.0 --filter Category!=Integration --logger "trx;LogFileName=$2.trx" --results-directory TestResults $1 --settings ./conveyor.runsettings
and generating report using report-generator
reportgenerator "-reports:$COVERAGE_FILES" "-targetdir:./.coverage/html" "-classfilters:-VMware.*" "-reporttypes:Html" "-title:Conveyor"
In the files I found in branch coverage, all branches showed 0%
I think this has already been answered here: #1268 and #1384. Does this help?
Thanks, I got my answer.
Describe the bug I am getting 100% branch coverage but 0% line coverage Can anyone tell me how is this possible ?
Expected behavior Both line and branch coverage should be 0
Configuration (please complete the following information): Please provide more information on your .NET configuration:
and generating report using report-generator
Note
In the files I found in branch coverage, all branches showed 0%