Module 1 of 4
What to test
Behaviour, accuracy and the things a demo never shows.
Four lessonsAbout 15 minutes
EvidenceMeasure, do not assert
Self-checkedAnswers are in the text
Lesson 1
Define the behaviour first
Write what the system must do in observable terms: answer from sources, refuse out of scope, return valid JSON, stay under a cost limit.
A test that cannot fail is not a test.
- Observable criteria only.
- One test per behaviour.
- State the pass threshold before you run.
Check yourself. Why must a criterion be observable?
Lesson 2
Accuracy is not enough
A model can be accurate and still unsafe, slow, expensive or inconsistent. Test faithfulness, format, refusal, latency and cost together.
Track these separately so a regression is attributable.
- Faithfulness is not truth.
- Format failures break integrations.
- Cost per successful task matters.
Check yourself. Name three qualities besides accuracy worth measuring.
Lesson 3
Human and automated review
Automated checks catch format, schema and obvious policy breaches. Humans catch meaning, tone and subtle unfairness.
Label which results came from each, and never present a simulated score as a human judgement.
- Automate the cheap checks.
- Sample the expensive ones.
- Label the method.
Check yourself. What should a human review that a script cannot?
Lesson 4
A release gate
A gate is a rule: no release unless these cases pass and these risks are accepted by a named person.
Write the gate before the pressure arrives.
- Define the blocking cases.
- Name the approver.
- Record the exceptions.
Check yourself. Why write the gate before launch?