© Michael Stueben 2018
Michael StuebenGood Habits for Great Codinghttps://doi.org/10.1007/978-1-4842-3459-4_13

13. Write the Tests First (Sometimes)

Michael Stueben1 
(1)
Falls Church, Virginia, USA
 
  • We’ve interviewed and hired a lot of testers. We have yet to meet a computer science graduate who learned anything useful about testing at a university.—Cem Kaner, Jack Falk, Hung, Quoc Nguyen, Testing Computer Software 2nd Ed. (Wiley, 1999), page ix.

In industry, the first step in testing is called domain testing: testing of variables, constraints, and correct types. Next is unit testing (aka functional testing aka white-box testing): the testing of individual functions. Finally there is black-box testing: the testing of the entire program. Industry ...

Get Good Habits for Great Coding: Improving Programming Skills with Examples in Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.