Definition

Pairwise testing

What does pairwise coverage mean?

Pairwise testing selects cases so that every permitted pair of values from any two factors appears together at least once. The coverage claim applies to the factors, values and constraints in that model. A particular combination of three values may still be absent.

How do you know you reached pairwise coverage?

List the valid value pairs in the model and count the distinct pairs in the cases that actually ran. A generated case that was skipped contributes no observations. Add a known high-risk combination as its own case when the failure depends on three or more factors.

Worked example

A layout that breaks in exactly one combination

A matrix covers browser, screen width and language. A browser can appear with every width and every language while its narrow Arabic layout never appears. If a previous defect clipped that layout’s back button, keep the three-factor combination as a regression case.

Try it on your pull request

Choose a change in your repository and tell Cue April what should happen. Review the proposed checks before they run.

Try Cue April on your repository