Equivalence partitioning and boundary value analysis
Equivalence partitioning is a great method when dealing with different data ranges. It’s not possible to test all possible permutations and values that we have in the game, but we do want to make sure that they work as intended. Using equivalence partitioning, we can significantly shorten the testing time and ensure optimal coverage.
The premise of equivalence partitioning is that we can split testing conditions into parts that can be considered the same. Testing one value from each partition is equal to testing each and every value from the same partition. Let’s look at the following example of this:
Figure 10.3 – Equivalence partitioning
In the example in Figure 10.3, we can see how equivalence partitioning would work in the case of gun ammunition. Let’s imagine that this specific gun is designed for our new, sci-fi-themed game and that it can hold 100 bullets. We can...