
Sometimes you just need to merge. Maybe a critical bug is breaking production. Maybe sales promised a feature that definitely didn’t exist yet and it’s blocking the largest deal of the quarter. Either way, you’re staring down the finish line—until the code coverage status check blocks your merge: not enough tests.
Codecov’s AI Test Generator (now in open beta) unblocks you by automatically generating tests for any uncovered code in your PR, in seconds.
AI-generated tests in your PR
Fixing under-tested code used to mean lots of manual work—especially in large or unfamiliar codebases. First, you had to understand the code. Then dig through whatever tests already exist (assuming they do), build some mocks, and finally write the actual tests. Your best case scenario is 30 minutes, worst case is hours to days.
Codecov already makes that easier by showing you exactly which lines are missing tests—no need to grep your way through test folders. But when you’re already short on time, line details alone aren’t enough.
Codecov AI takes that coverage context and automatically generates the missing tests directly in your PR —bringing your patch coverage up to 100% without breaking your flow.
No manual setup, just tests where you need them, so you can breeze right through your coverage gate in seconds with zero effort.
If you think this sounds familiar, you’re right. We launched a version of AI Test Generation a while back, but it was only available through GitHub Copilot, which requires its own paid subscription. That option is still available, but we wanted to make AI Test Generation easier for everyone to access.
Now you can get AI-generated tests right in your PR comment, without a GitHub Copilot license, just as you already do with AI PR Review.
Try it for yourself
AI Test Generation is available now in Beta for all organizations using GitHub
If you’ve already installed the Codecov AI GitHub Integration, you can start using it right now. Just enter @codecov-ai-reviewer test
in a PR comment.
If you haven’t installed the GitHub integration yet, details are available in the docs.