coverage run --source=src -m pytest
Category: Python & pip
Collect coverage only from the src/ directory