Auto-Generate Tests for Your Codebase with AI (CircleCI Chunk Tutorial)

Apr 16, 2026

AI coding tools help you ship features faster than ever, but test coverage often can't keep up. In this video, we show you how CircleCI's Chunk autonomous CI/CD agent finds untested code in your codebase, writes tests to cover it, and opens a pull request for your review.

What you'll learn:

  • How to set up Chunk inside your CircleCI project
  • How to use the Extend Test Coverage preset to automatically identify and fill coverage gaps
  • How to review and merge Chunk's pull request
  • How to write targeted prompts to focus on specific files or functions

Chunk works directly inside your CI/CD pipeline, giving it access to your build history, test results, and coverage reports. That means smarter tests, not just more tests.

Who’s this for? Engineering teams using AI coding assistants who want test coverage to keep pace with faster code generation.

Demo repo: https://circle.ci/4dirM79
Quick start guide: https://circle.ci/42bBjpM
Tutorial: https://circle.ci/4vxwkx3
Try Chunk: https://circle.ci/3OjGwsv
Get started with CircleCI: https://circle.ci/4cu846A