November 2024
Intermediate to advanced
300 pages
7h 12m
English
The zero, one, many, and exception-based tests will cover most of your typical needs when testing code. But you’ll also want to consider adding tests for cases that a happy path through the code might not hit. These boundary conditions represent scenarios that involve the edges of the input domain.
You can employ the CORRECT acronym, devised by Andy Hunt and Dave Thomas for the first edition of this book [HT03], to help you think about potential boundary conditions. For each of these items, consider whether or not similar conditions can exist in the method that you want to test and what might happen if these conditions are violated:
Conformance—Does the value conform to an expected format, such as an email ...
Read now
Unlock full access