Testing Tools
pytest and friends for writing and running tests.
Easy
This is an overview — pick a sub-topic below.
Sub-topics (5)
pytest
The most popular Python test framework: plain assert statements, fixtures and plugins.
Easy♥ 0🔖 0💬 0
tox and Nox
Run your tests across several Python versions and environments automatically.
Intermediate♥ 0🔖 0💬 0
Hypothesis
Property-based testing: describe the inputs, and Hypothesis generates hundreds of cases (including edge cases).
Intermediate♥ 0🔖 0💬 0
Coverage.py
Measures which lines your tests actually execute.
Easy♥ 0🔖 0💬 0
Faker, Factory Boy and freezegun
Generate realistic fake data, build test objects, and freeze time in tests.
Easy♥ 0🔖 0💬 0
Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.
Discussion (0)
Sign in or join free to ask questions and discuss this topic.