Unit Testing glossary: Journeyman level

8 Unit Testing terms at the Journeyman level, each with a short definition and a link to its full page.

Updated

Study these as flash cards

Code Coverage
How much code the tests execute.
Mock
A stand-in that records how it was called.
Red, Green, Refactor
The TDD loop: fail, pass, then tidy.
Setup and Teardown
Code run before and after each test.
Snapshot Testing
Save output at the beginning of a test, then check again later to see if the values changed.
Stub and Fake
Stubs return canned answers; fakes are simple working versions.
Test Double
Any stand-in object used in a test.
Test Naming
Names that state behaviour, condition and expected outcome.

Every Unit Testing term, by level