question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Conversion from 'Visual Studio' coverage format (.coverage) to any other formats is not working

See original GitHub issue

Conversion 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:closed
  • Created 4 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
kahuzcommented, May 3, 2023

@sathishreddy48 I had a similar issue and received the response below. https://github.com/microsoft/codecoverage/issues/18#issuecomment-1465720936

I hope this helps.

1reaction
ManikandanManicommented, Apr 3, 2022

I fixed it, I found out that the downloaded file was corrupted and hence it couldn’t convert.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Convert MSTest code covarage results in to XML
I am using this code to convert MSTest code covarage results to XML format , I added reference to Microsoft.VisualStudio.Coverage.Analysis.dll ...
Read more >
Troubleshoot code coverage - Visual Studio
Possible reasons for seeing no results or old results; Some code is always shown as not covered; References. Applies to: Visual Studio.
Read more >
Azure Pipeline Coverage Checks Not Running
Our PR coverage checks are no longer running. ... the state of the repository, have to convert all the .coverage to something "publishable"....
Read more >
How to collect the code coverage of your tests in .NET
... how you can collect it without relying on Visual Studio or Rider. Give Coverlet a star: https://github.com/coverlet- coverage /coverlet ...
Read more >
.NET test coverage - SonarQube Docs
This is a modern alternative to the Visual Studio Code Coverage provided by Microsoft (see above) that outputs results in the same format,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found