Course contents · Chapter 3
Building with AIChapter 3 of 42 min reading + practice

Keep yesterday's failure in tomorrow's tests

A regression test checks that an improvement does not reintroduce an earlier problem.

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.

  1. Specify behaviour
  2. Create cases
  3. Run checks
  4. Investigate failures
A working model for this course. Use it to locate where a decision or failure occurs.

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.

Further reading & course resources

Original documentation and teaching references for further investigation.