-
-
Notifications
You must be signed in to change notification settings - Fork 283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cobertura report shows NaN for all complexities #367
Comments
@danielpalme , I was looking at this and every place in |
It's not as easy as it may seem. All the other elements require quite a lot of work. |
@danielpalme , i opened the PR #369. Right now, with this changes i already added the complexity to:
And, trying to figure out how to add to package / root. |
Will test this in several scenarios. But may take a while, since I'm on vacation. |
Merged this into develop branch. |
Expected Behavior
Creating the Cobertura report type should include Cycolmatic Complexity, and highlight Risk Hotspots.
Observed Behavior
dotnet test --collect:"XPlat Code Coverage" --settings .\coverlet.runsettings.xml
on a .Net Core 3.0 projectreportgenerator "-reports:*\TestResults\*\*.xml" "-targetdir:coveragereport" -reporttypes:""HTMLInline_AzurePipelines;Cobertura"
on a .Net Core 3.0 project,The HTML Report shows cyclomatic complexity numbers, and risk hotspots as expected. The Cobertura.xml file has
complexity="NaN"
for every package, class, and method. And since all complexities areNaN
, no Risk Hotspots show.The text was updated successfully, but these errors were encountered: