Comparison
parameterized vs testscenarios vs unittest-parametrize
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Parameterized testing with any Python test framework
Slowing down. Last release over 3 years ago, little activity since. Fine for existing code; think twice for a new project.
$
pip install parameterizedTestscenarios, a unittest extension for dependency injection
Maintained. Last release 3 months ago, commits in 2 of the last 26 weeks. Weaker on commit activity.
$
pip install testscenariosParametrize tests within unittest TestCases.
Actively maintained. Last release 3 months ago, commits in 12 of the last 26 weeks. A safe choice.
$
pip install unittest-parametrizeIn short
- parameterized is slowing down (last release over 3 years ago): fine for existing code, risky for a new project.
- testscenarios is the most used: 328.1K downloads a month.
- Maintenance is comparable: unittest-parametrize 71, testscenarios 63 on Pythie’s Index.
- unittest-parametrize is growing fastest: downloads +15% over the last month.
- Safe default for a new project: testscenarios.
Side by side
| Metric | parameterized | testscenarios | unittest-parametrize |
|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 14 | 63 |