Model: naming tests

December 17th, 2020

Naming tests

  • snake case is more readable than camel case (when > 30 characters, which tests usually are)

  • "should" is like training wheels

 

name tests as propositions

no description for image available

 

name test as Method_input_result

no description for image available

 

(src: Video: Structure and Interpretation of Test Cases - Kevlin Henney)