allpairspy is an open-source Python library for generating pairwise (all-pairs) test combinations. It helps reduce the number of test cases while ensuring comprehensive coverage by covering all possible pairs of input parameter values. The library is actively maintained with steady, though infrequent, releases.
pip install allpairspyVerified import paths — ran on the pinned version, not inferred.
This example demonstrates how to generate pairwise test combinations from a list of input parameters. Each generated 'pairs' item is a combination that covers at least one occurrence of every possible pair of values from the input parameters.
Upgrade Python to 3.7+ or use an older `allpairspy` version (e.g., `<2.5.1` for Python 3.6).
Upgrade Python to 3.5+ or use an older `allpairspy` version (e.g., `<2.5.0` for Python 3.4).
Upgrade `allpairspy` to 2.3.0 or later: `pip install --upgrade allpairspy`.
Install the library using pip: `pip install allpairspy`.
Wrap your parameter sets in a single list: `AllPairs([["A", "B"], [1, 2]])` instead of `AllPairs(["A", "B"], [1, 2])`.
Ensure the `parameters` list contains at least one non-empty list of values for each factor.
No dependency data recorded yet.