(https://www.youtube.com/watch?v=tWn8RA_DEic) ./resources/video-structure-and-interpretation-of-test-cases-k.resources/screenshot_2020-12-16-17-46-15-262_com.google.jpg ./resources/video-structure-and-interpretation-of-test-cases-k.resources/screenshot_2020-12-16-17-47-40-000_com.google.jpg ./resources/video-structure-and-interpretation-of-test-cases-k.resources/screenshot_2020-12-16-17-49-43-357_com.google.jpg ./resources/video-structure-and-interpretation-of-test-cases-k.resources/screenshot_2020-12-16-17-50-13-728_com.google.jpg ./resources/video-structure-and-interpretation-of-test-cases-k.resources/screenshot_2020-12-16-17-51-44-001_com.google.jpg ./resources/video-structure-and-interpretation-of-test-cases-k.resources/screenshot_2020-12-16-17-55-32-260_com.google.jpg ./resources/video-structure-and-interpretation-of-test-cases-k.resources/screenshot_2020-12-16-17-58-14-609_com.google.jpg


Model: 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 ./resources/video-structure-and-interpretation-of-test-cases-k.resources/screenshot_2020-12-16-18-14-05-708_com.google.jpg

name test as Method_input_result ./resources/video-structure-and-interpretation-of-test-cases-k.resources/unknown_filename.png


Model: tests must clearly express required functionality ./resources/video-structure-and-interpretation-of-test-cases-k.resources/screenshot_2020-12-16-18-14-32-109_com.google.jpg

  • Article:

./resources/video-structure-and-interpretation-of-test-cases-k.resources/screenshot_2020-12-16-18-23-17-472_com.google.jpg

Model: Grouping tests ./resources/video-structure-and-interpretation-of-test-cases-k.resources/screenshot_2020-12-16-18-38-14-973_com.google.jpg ./resources/video-structure-and-interpretation-of-test-cases-k.resources/screenshot_2020-12-16-18-38-19-691_com.google.jpg ./resources/video-structure-and-interpretation-of-test-cases-k.resources/screenshot_2020-12-16-18-39-06-102_com.google.jpg