Chapter 10. Data-driven and Combinatorial Testing

Occasionally we end up writing a lot of tests that look strikingly similar. It almost feels like we’ve turned a table containing inputs and expected outputs into identical test cases. In Chapter 8, “Specification-based Testing Techniques,” in the “Boundary Value Analysis” section, there was an example of logic for computing a factor that would determine the cost of car insurance premiums. It was a discontinuous function, which means that thorough testing of it would involve several equivalence classes and strict boundary values. Here’s the function again:

Image

Given the importance age has on the final ...

Get Developer Testing: Building Quality into Software 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.