GitHub Actions for accurate code coverage reporting

Most coverage tools give you the wrong number. They'll happily report that your codebase is 90% covered, while the 200 lines you just merged have zero tests. Looks great on a dashboard. Doesn't help anyone in review So I built a GitHub Actions that only reports coverage + lint quality on the lines your PR changed. Just the new code and new violations but my favorite feature is that it annotates code that isn't covered. A few weeks later it's live on the GitHub Marketplace, running across our internal repos, and starting to show up in other teams' CI pipelines too If your team ships PRs and mostly wants to know how much the new code is tested, link's in the first comment. #OpenSource #DeveloperExperience #SoftwareEngineering #GitHubActions #DevOps

Here's the action and the source: https://github.com/marketplace/actions/diff-cover-action If you try it on a repo let me know what you thought of it

Like
Reply

As the user of this tool, I am happy that it has helped in getting clarity on the coverage of my work on my PRs daily. Thanks man for this tool 🚀

Have a look at "codecov". Give it a shot. You won't regret it.

See more comments

To view or add a comment, sign in

Explore content categories