Test Naming
noun
say it: “TEST NAYM-ing” /tɛst ˈneɪmɪŋ/
Naming each test after the behavior, the situation and the expected result, so a failure explains itself.
What is Test Naming?
Good test names describe the behaviour, condition and outcome, like Deposit_WhenAmountIsNegative_Throws.
In a sentence
- “Good test naming means Total_WhenCartIsEmpty_IsZero tells you what broke.”
Level: Journeyman · More Unit Testing terms at this level
Updated