O'Reilly logo

Mastering Software Testing with JUnit 5 by Boni García

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Equivalence partitioning

Equivalence partitioning (also known as equivalence class partitioning) is a black-box technique (that is, it relies in the requirements of the system) aimed to reduce the number of tests that should be executed against a SUT. This technique was first defined by Glenford Myers in 1978 as:

A technique that partitions the input domain of a program into a finite number of classes [sets], it then identifies a minimal set of well-selected test cases to represent these classes.

In other words, equivalence partitioning provides a criteria to answer the question How many tests do we need? The idea is to divide all possible input test data (which often is a enormous number of combinations) in a set of values for which we ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required