A regression test checks that an improvement does not reintroduce an earlier problem.
Retain representative failures and compare versions under consistent conditions. When outputs vary, record repeated results rather than selecting the most favourable one.
The bigger picture
An AI system includes data handling, model behaviour and application decisions. Testing must examine all of them. A correct model response is not enough if the application exposes private information or fails to handle missing input.
- Specify behaviour
- Create cases
- Run checks
- Investigate failures
Concepts to keep close
- Regression test
- A repeatable check intended to reveal whether a change broke established behaviour.
- Evaluation set
- Cases selected to assess defined aspects of model or system performance.
- Oracle
- The rule, reference or judgment used to determine whether a result is acceptable.
Reasoning through the problem
Keep the previous failure cases.
Run old and new cases after a change.
Record version and repeated outcomes consistently.
Use the idea carefully
Define expected behaviour before collecting outputs. Separate deterministic checks from judgments requiring a rubric. Include boundary, invalid-input and changed-condition cases. Record the system version and relevant settings. Compare against a baseline and inspect failures; a single successful demonstration is not a sufficient test report.