Actionable code coverage
Checks and insights to help your team ship healthy code while saving time on PR reviews.
Works with Ruby and GitHub.
These companies review pull request test coverage with UndercoverCI
How it works
Stop focusing on getting to 100% test coverage.
Reduce pull request defects by telling when changed code is untested.
1️⃣ Open a pull request
The CI server runs tests and uploads coverage data to UndercoverCI. That's the only required post-install setup step!
2️⃣ Find missing test coverage
We scan the PR diff and verify local test coverage for each updated class, method and block, because an absolute percentage check is not enough.
3️⃣ Fix or ack review comments
Reveal untested methods and blocks, find unused code paths and improve your test suite.
Read more about Ruby code coverage and unit testing strategy
The purpose of branch coverage is to check whether every conditional branch in a given line of code has been tested and Ruby has this feature since
simplecovcan report branch coverage too and now so does undercover with the new
Today, I’m launching UndercoverCI— a CI robot who protects your Ruby codebase from untested code changes. Take a moment to learn why you should add it to your team’s code review workflow. Adding UndercoverCI to your code review workflow will prevent untested code changes from slipping into production without anyone noticing.
For existing projects, because of the sheer workload of having to write the tests to cover code that you have not written to fill the gaps, it is much harder to get to the confidence level that having 100% coverage brings, but at least by using code coverage reports you can make informed decisions on how risky a change is going to be.
Detect untested methods in your PRs
Free for individuals and open-source repositories. Organization plans start at $49 per month with a free 14-day trial.Sign Up with GitHub