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.

Add code coverage badge to the README

See original GitHub issue

Now that the test suite is converted over to use Jest and DOM Testing Library, what do you think about adding a code coverage badge to the README to show off the code coverage?

I see in the focus-trap-react repo we used Codecov along with GitHub Actions for the CI. In this tabbable repo it’s also using GitHub Actions for the CI, so I assume we can generate the code coverage report there and then feed the results to Codecov, right? Or maybe even generate the badge without using Codecov if that’s not something you want to do, and we could just use GitHub Actions directly?

Thoughts?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
thawkin3commented, Mar 4, 2021
1reaction
thawkin3commented, Mar 4, 2021

Thanks! I’m happy to knock this out. I’ll have a PR up hopefully in the next day or two to get this set up.

Read more comments on GitHub >

github_iconTop Results From Across the Web

GitHub - dwyl/repo-badges
GitHub - dwyl/repo-badges: Use repo badges (build passing, coverage, etc) in your readme/markdown file to signal code quality in a project.
Read more >
Coverage Badge with GitHub Actions - FINALLY!
This is the only documented way to get coverage badges with GitHub Actions. It took a few months of research, trial, and error; ......
Read more >
Adding Test Coverage Badge on GitHub Without Using Third ...
It's easy to add test coverage on GitLab using the built-in feature. ... you won't be able to add a badge reference (1)...
Read more >
Making a coverage badge | Ned Batchelder
This is a sketch of how to use GitHub actions to get a total combined coverage number, and create a badge for your...
Read more >
How to Add Badges to a GitHub Repository
Adding badges to the readme file of GitHub repositories is a common task for ... you can add code coverage to your repository,...
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