# Prompt regression testing

Canonical page: https://www.theglitch.ai/ai-glossary/prompt-regression-testing

Rerunning a fixed set of test cases whenever a prompt or model changes, to catch answers that got worse.

[Prompt regression testing, common card \#178 in The Glitch AI glossary: Rerunning a fixed set of test cases whenever a prompt or model changes, to catch answers that got worse.](https://www.theglitch.ai/images/cards/glossary/prompt-regression-testing.png?v=fc48d2908dc312a6)

GLS 178 · common

Also called: Prompt testing, Evals in CI.

For: Builders

## Why it matters

A ‘tiny’ prompt edit or model upgrade can quietly break cases that used to work.

## In practice

Every code change reruns 100 saved questions and is blocked if accuracy drops.

## Watch for

Tests only catch what they cover; turn every real failure into a new case.

## Related terms

[Golden dataset](https://www.theglitch.ai/ai-glossary/golden-dataset) · [Evaluation](https://www.theglitch.ai/ai-glossary/evaluation) · [LLMOps](https://www.theglitch.ai/ai-glossary/llmops)

## Guides that use it

[How AI agents fail in production.](https://www.theglitch.ai/learn/agent-failure-modes)

## Sources

- [promptfoo docs: Intro](https://www.promptfoo.dev/docs/intro/)

Definition updated 2026-10-29.

[The Ultimate AI Glossary (2027): every term](https://www.theglitch.ai/ai-glossary)

---

Site: [The Glitch](https://www.theglitch.ai) · [About Rabin](https://www.theglitch.ai/about) · [Agent guide](https://www.theglitch.ai/agent.md)
