Unit Testing flash cards: Journeyman level

8 Unit Testing terms at the Journeyman level, as flash cards.

Updated

Terms in this deck

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.

Read them in the glossary