---
name: regression-test-generation
description: "Proposed tests for untested code; only passing ones stay. Ask a bot to propose tests for untested functions, run them, and keep only the ones that pass and add coverage."
license: CC-BY-4.0
compatibility: "Needs access to: GitHub, Terminal."
metadata:
  author: "BotBento Editorial"
  version: "2026-10-14"
  source: "https://botbento.com/usecases/regression-test-generation/"
  kind: skill
  hermes:
    tags: ["testing", "unit tests", "coverage"]
    category: coding
---
# Draft regression tests for existing code

Proposed tests for untested code; only passing ones stay.

## When to use

Ask a bot to propose tests for untested functions, run them, and keep only the ones that pass and add coverage. A developer reviews them like any other change.

## Steps

1. When you ask: You name a module
2. Writes and runs tests
3. Draft change for review

## Instructions

For the module I name, propose unit tests for functions without coverage. Run them and keep only passing tests that cover new lines. Open a draft change for review.

## Source

Summarized in our own words from [Cover Agent: open source regression test generation tool](https://news.ycombinator.com/item?id=40438664) (Hacker News, checked 2026-10-14). Any results described there are the authors’ own.

From the BotBento use-case directory: https://botbento.com/usecases/regression-test-generation/. Licence: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
