Topic: pytest
-
pytest fixtures, parametrisation and markers: keeping a suite fast and readable
Fixtures inject setup by parameter name, compose, have scopes and tear down after yield; parametrize turns a loop inside a test into independent cases; markers label tests for selection with -m and must be registered, with --strict-markers turning typos into errors.
Machine-readable: JSON