Conversion from 'Visual Studio' coverage format (.coverage) to any other formats is not working
See original GitHub issueConversion from ‘Visual Studio’ coverage format (.coverage) to any other formats is not working – the generated output formats (Cobertura, Xml, HtmlInline_AzurePipelines) do not have any coverage information. Please see the attached for the ReportGenerator task logs from my Azure Pipeline run.
2020-01-06T08:41:09.9322747Z ##[section]Starting: ReportGenerator 2020-01-06T08:41:09.9490062Z ============================================================================== 2020-01-06T08:41:09.9490116Z Task : ReportGenerator 2020-01-06T08:41:09.9490162Z Description : ReportGenerator converts coverage reports generated by OpenCover, dotCover, Visual Studio, NCover, Cobertura, JaCoCo, Clover, gcov or lcov into human readable reports in various formats. 2020-01-06T08:41:09.9490187Z Version : 4.4.0 2020-01-06T08:41:09.9490211Z Author : Palmmedia 2020-01-06T08:41:09.9490255Z Help : [More Information](https://github.com/danielpalme/ReportGenerator) 2020-01-06T08:41:09.9490278Z ============================================================================== 2020-01-06T08:41:10.2493259Z [command]"C:\Program Files\dotnet\dotnet.exe" *MASKED*\_work\_tasks\reportgenerator_be803a55-9253-4895-a525-be570d86f161\4.4.0\tools\netcoreapp2.1\ReportGenerator.dll -reports:*MASKED*\_work\_temp\**\*.coverage -targetdir:*MASKED*\ReportGeneratorIssue\CoverageReport1 -reporttypes:Cobertura;Xml;XmlSummary;HtmlInline_AzurePipelines -sourcedirs:*MASKED*\_work\4\s\unit-testing-using-dotnet-test -historydir: -plugins: -assemblyfilters:+* -classfilters:+* -filefilters:+* -verbosity:Verbose -tag:20200106.7_#28198 2020-01-06T08:41:10.3234022Z 2020-01-06T14:11:10: Arguments 2020-01-06T08:41:10.3244657Z 2020-01-06T14:11:10: -reports:*MASKED*\_work\_temp\**\*.coverage 2020-01-06T08:41:10.3244844Z 2020-01-06T14:11:10: -targetdir:*MASKED*\ReportGeneratorIssue\CoverageReport1 2020-01-06T08:41:10.3244957Z 2020-01-06T14:11:10: -reporttypes:Cobertura;Xml;XmlSummary;HtmlInline_AzurePipelines 2020-01-06T08:41:10.3245007Z 2020-01-06T14:11:10: -sourcedirs:*MASKED*\_work\4\s\unit-testing-using-dotnet-test 2020-01-06T08:41:10.3251452Z 2020-01-06T14:11:10: -historydir: 2020-01-06T08:41:10.3251526Z 2020-01-06T14:11:10: -plugins: 2020-01-06T08:41:10.3251566Z 2020-01-06T14:11:10: -assemblyfilters:+* 2020-01-06T08:41:10.3251630Z 2020-01-06T14:11:10: -classfilters:+* 2020-01-06T08:41:10.3252195Z 2020-01-06T14:11:10: -filefilters:+* 2020-01-06T08:41:10.3252329Z 2020-01-06T14:11:10: -verbosity:Verbose 2020-01-06T08:41:10.3252431Z 2020-01-06T14:11:10: -tag:20200106.7_#28198 2020-01-06T08:41:10.4694307Z 2020-01-06T14:11:10: Executable: *MASKED*\_work\_tasks\reportgenerator_be803a55-9253-4895-a525-be570d86f161\4.4.0\tools\netcoreapp2.1\ReportGenerator.Core.dll 2020-01-06T08:41:10.4697062Z 2020-01-06T14:11:10: Working directory: *MASKED*\_work\4\s 2020-01-06T08:41:10.4848853Z 2020-01-06T14:11:10: Settings 2020-01-06T08:41:10.4856829Z 2020-01-06T14:11:10: { "NumberOfReportsParsedInParallel": 1, "NumberOfReportsMergedInParallel": 1, "MaximumNumberOfHistoricCoverageFiles": 100, "RenderPngFallBackImagesForHistoryCharts": false, "CachingDurationOfRemoteFilesInMinutes": 10080, "DisableRiskHotspots": false } 2020-01-06T08:41:10.4857017Z 2020-01-06T14:11:10: { "MetricThresholdForCyclomaticComplexity": 30, "MetricThresholdForCrapScore": 15, "MetricThresholdForNPathComplexity": 200 } 2020-01-06T08:41:10.4972601Z 2020-01-06T14:11:10: Loading report '*MASKED*\_work\_temp\331ad181-bc73-4450-abdb-eb0ecd849815\ganesp_GANESHDT_2020-01-06.14_11_02.coverage' 1/2 in memory 2020-01-06T08:41:10.5006242Z 2020-01-06T14:11:10: Finished parsing *MASKED*\_work\_temp\331ad181-bc73-4450-abdb-eb0ecd849815\ganesp_GANESHDT_2020-01-06.14_11_02.coverage... 2020-01-06T08:41:10.5006613Z 2020-01-06T14:11:10: Loading report '*MASKED*\_work\_temp\ganesp_GANESHDT_2020-01-06_14_11_05\In\GANESHDT\ganesp_GANESHDT_2020-01-06.14_11_02.coverage' 2/2 in memory 2020-01-06T08:41:10.5009477Z 2020-01-06T14:11:10: Finished parsing *MASKED*\_work\_temp\ganesp_GANESHDT_2020-01-06_14_11_05\In\GANESHDT\ganesp_GANESHDT_2020-01-06.14_11_02.coverage... 2020-01-06T08:41:10.5009944Z 2020-01-06T14:11:10: Parsing of 2 files completed. 2020-01-06T08:41:10.5020002Z 2020-01-06T14:11:10: Coverage report parsing took 0.0 seconds 2020-01-06T08:41:10.5145548Z 2020-01-06T14:11:10: Initializing report builders for report types: Cobertura, Xml, XmlSummary, HtmlInline_AzurePipelines 2020-01-06T08:41:10.5183667Z 2020-01-06T14:11:10: Analyzing 0 classes 2020-01-06T08:41:10.5184192Z 2020-01-06T14:11:10: Creating summary 2020-01-06T08:41:10.5265146Z 2020-01-06T14:11:10: Writing report file '*MASKED*\ReportGeneratorIssue\CoverageReport1\Cobertura.xml' 2020-01-06T08:41:10.5379426Z 2020-01-06T14:11:10: Writing report file '*MASKED*\ReportGeneratorIssue\CoverageReport1\index.htm' 2020-01-06T08:41:10.5901424Z 2020-01-06T14:11:10: Writing report file '*MASKED*\ReportGeneratorIssue\CoverageReport1\Summary.xml' 2020-01-06T08:41:10.5905728Z 2020-01-06T14:11:10: Writing report file '*MASKED*\ReportGeneratorIssue\CoverageReport1\Summary.xml' 2020-01-06T08:41:10.5913044Z 2020-01-06T14:11:10: Report generation took 0.1 seconds 2020-01-06T08:41:10.6185631Z ##[section]Finishing: ReportGenerator
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (3 by maintainers)

Top Related StackOverflow Question
@sathishreddy48 I had a similar issue and received the response below. https://github.com/microsoft/codecoverage/issues/18#issuecomment-1465720936
I hope this helps.
I fixed it, I found out that the downloaded file was corrupted and hence it couldn’t convert.