Windows
git clone https://github.com/ondiekelijah/coverage-example.git
cd coverage-example
py -3 -m venv venv
macOS/Linux
git clone https://github.com/ondiekelijah/coverage-example.git
cd coverage-example
python3 -m venv venv
Windows
venv\Scripts\activate
macOS/Linux
. venv/bin/activate
or
source venv/bin/activate
Applies for windows/macOS/Linux
pip install -r requirements.txt
To generate a coverage report, executed the command:
pytest --cov-report term --cov=app tests/
Read more about coverage reporting here