Test

A small program that automatically checks that a part of the code does what it should. The test “fails” if it finds a mistake.

You’ll also find it as: tests, unit tests

How it appears in the course

You always give Claude a way to check its own work, for example tests.
Introduction · Module 04, The working method, step by step
Code — Claude writes the code following the plan. After each step it runs the tests, to see whether it broke anything.
What are the four basic steps? · Module 04, The working method, step by step
A test is a small program that automatically checks another piece of the program. It’s like a checklist: “if I give input X, Y must come out”. When you run the tests, each one says “passed” (green) or “failed” (red).
What are tests, and what is TDD? · Module 04, The working method, step by step

Where you learn it

In module 04 · The working method, step by step, in the Claude Code for Beginners course.

Related terms

Learn Claude Code from zero, in plain English

12 modules with 1–2 minute lessons, which you can also do on your phone. The first two modules are free.