Skip to content

Latest commit

 

History

History
44 lines (26 loc) · 1.17 KB

README.md

File metadata and controls

44 lines (26 loc) · 1.17 KB

pytest-plugins-talk

My talk about pytest-plugins

Install

Install requirements:

python3 -m venv .venv
source ~/.venv/bin/activate
pip install -r requirements.txt

Run pytest:

pytest .

Branchs step-by-step

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.