pip install pytest-cov # install plugin poetry add -D pytest-cov # if you have poetry add as dev dependency coverage run -m pytest ....
coverage run -m pytest ....