ReportGenerator converts coverage reports generated by coverlet, OpenCover, dotCover, Visual Studio, NCover, Cobertura, JaCoCo, Clover, gcov or lcov into human readable reports in various formats.
Describe the bug
When using -reporttypes:Cobertura the resulting output file will have 'complexity="NaN"' for all methods that have parameters. This appears to be a regression as it is not an issue in 4.x versions
Based on a quick look through the code it appears that there is a discrepancy in the CoberturaParser and CoberturaReportBuilder.
In one case we're using methods by short name: Add(...) and in the other we're looking for methods using the long name: Add(System.Int32).
To Reproduce
I've attached a sample file that can be used as an input that will show the issue.
sampleCoberturaReport.txt
When that file is used as an input report, the output report will have the following:
Describe the bug When using -reporttypes:Cobertura the resulting output file will have 'complexity="NaN"' for all methods that have parameters. This appears to be a regression as it is not an issue in 4.x versions
Based on a quick look through the code it appears that there is a discrepancy in the CoberturaParser and CoberturaReportBuilder.
In one case we're using methods by short name: Add(...) and in the other we're looking for methods using the long name: Add(System.Int32).
To Reproduce I've attached a sample file that can be used as an input that will show the issue. sampleCoberturaReport.txt
When that file is used as an input report, the output report will have the following:
Both the Add and Subtract have a complexity of NaN where they didn't in the input report.