coverage run -m pytest

Category: Python & pip

coverage run -m pytest

Run pytest while collecting code coverage data

Runs pytest while coverage.py records which lines of code were executed during tests.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.