Case & CodeA FIELD GUIDE TO AI
Start learning
Intermediate

Regression test

Also: regression tests

In plain words

A test you rerun after every change to make sure nothing that used to work has broken.

The fuller definition

A regression test checks whether a change breaks behavior that previously met a requirement.

How it fits together
  1. Known failure

    Preserve the case

  2. Change

    Revise system

  3. Retest

    Confirm the repair remains

A simplified relationship, not a screenshot or a complete design.

A concrete example

After revising a prompt, rerun the example where a condition was previously omitted.

The distinction that matters

Passing old cases alone does not demonstrate generalization; also use fresh representative examples.

Related terms

Where it is taught

Test an AI workflow on work you can assess

Source and further reading

Anthropic · Evaluating AI agents

The definition and example are written for this library. The link gives background, official documentation or legal authority as labelled. Legal scope depends on the jurisdiction and current text; product features depend on release and settings.

Lessons, terms, practical guides and sources ESC