Python testing

From wikinotes
Revision as of 03:42, 24 January 2022 by Will (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

See Programming: Testing for best practices.

Test Frameworks

python pytest framework/runner for testing. very useful
python unittest builtin testing framework.

Mocking

python mock mock objects for better isolation

Test Matrices

python tox run configurable test-runner in multiple versions of python

Test Coverage

python coverage produce reports on your test coverage