Skip to content

rafaelhenrique/pytest-plugins-talk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

My talk about Pytest Plugins on Python Brasil 15

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages