Saturday 2:30 p.m.–2:50 p.m.

SubTests are the Best

Dmitriy Chukhin

Audience level:
Novice

Description

Testing the code we write is important, so we should use available tools to write tests that are readable, thorough, and DRY (Don't Repeat Yourself). Subtests, added in Python3.4, make accomplishing each of these three goals easier. This talk goes through some examples of how subtests make testing 1) more readable, 2) more thorough, and 3) more DRY. The result: better apps and fewer bugs.

Abstract

  1. Introduction
    • My experience, my role in development (2 min)
    • The importance of testing (2 min)
  2. How subtests can make testing code more readable (4 mins)
    • Example without, and with, subtests
  3. How subtests can make testing code more thorough (4 mins)
    • Example without, and with, subtests
  4. How subtests can make testing code DRYer (4 mins)
    • Example without, and with, subtests
  5. Conclusion
    • Are subtests the only way? & lessons to learn from subtests (2 min)
    • Why subtests don't mean good code, but can encourage it (2 min)