coverage run --source=src -m pytest

Category: Python & pip

coverage run --source=src -m pytest

Collect coverage only from the src/ directory

Collects coverage only from the src/ directory, ignoring test files and third-party packages.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.