This repo contains the source code of the course Test-Driven Development With PyTest
It uses pipenv to handle the virtual env:
pipenv install
We run pytest as a python module to have included the current directory CWD in sys.path:
pipenv shell
python -m pytest -v
In order to have the --cov option available we need to add the pytest-cov plugin (as included in the Pipfile):
pipenv shell
python -m pytest -v --cov .