My talk about pytest-plugins
Install requirements:
python3 -m venv .venv
source ~/.venv/bin/activate
pip install -r requirements.txt
Run pytest:
pytest .
Add simple hooks pytest_runtest_call and pytest_terminal_summary to count elapsed time per test.
Add line counter on pytest_runtest_call.
Implement structures counter on pytest_runtest_call.
Use colors on output of pytest_terminal_summary.
Show formated measures on output of pytest_terminal_summary.
Implement hook pytest_addoption.