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.

Generate and HTML reports with the coverage report generated/calculated

See original GitHub issue

As a customer of this Github Action, I would love to be able to generate a visual/HTML report with the coverage of my project, so I can easily inspect what’s the status of my testing strategy.

As an example, we can see how genhtml from lcov works:

genhtml ./coverage/lcov.info -o coverage

Screen Shot 2020-10-27 at 8 51 39 AM

Thank you! 💙

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:7
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
mtwichelcommented, Oct 28, 2020

Could a strategy to tackle this problem be?:

  • Build a template using Handlebars.js
  • Pull data from lcov-parse, as input for the template
  • Write the newly created pages to .html files
  • Either write a comment on the PR with the generated files, or add them as artifacts in github actions

I think this might be an easy and simple way to generate the files we need without involving some big overhead from a framework.

EDIT: This commit shows a proof of concept that might be easier than explaining it, and here’s a screenshot of the results: Screen Shot 2020-10-28 at 12 16 38 AM

0reactions
yeikel16commented, Feb 13, 2022

I’d like to recommend coverde, a CLI written in Dart that allows you to manipulate coverage and is actually much easier to use than lcov. It would be great to be able to integrate the use of this. It would only be necessary to install it with dart pub global activate coverde and use the coverde report -l command to generate the html.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add functionality to a command line tool · Issue #20 - GitHub
While he could generate a lcov.info file with flutter test --coverage ... Generate and HTML reports with the coverage report generated/calculated #19.
Read more >
Code Coverage HTML Reports - Micro Focus
Right-click the filename .tcz in your project and click Generate Coverage Report. · If prompted, specify any options for generating the report and...
Read more >
Generating and working with code coverage reports - IBM
You can generate code coverage reports from cached launches of a Java or plug-in project. ... The report file will be called index.html....
Read more >
How To Generate PHPUnit Coverage Report In HTML and ...
A detailed guide by LambdaTest on how to generate a PHPUnit coverage report in HTML using Xdebug, PCOV, and php-code-coverage in HTML and ......
Read more >
Publishing HTML Reports in Pipeline - Jenkins
Simple Build. I'm going to use the HTML Publisher Plugin to add the HTML-formatted code coverage report to my builds. Here's a simple...
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