ondiekelijah / coverage-example

Code coverage example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

coverage-example

Set Up

1 .Clone the git repo and create an environment

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

2 .Activate the environment

Windows

venv\Scripts\activate

macOS/Linux

. venv/bin/activate or source venv/bin/activate

3 .Install the requirements

Applies for windows/macOS/Linux

pip install -r requirements.txt

4. Reporting

To generate a coverage report, executed the command:

pytest --cov-report term --cov=app tests/

Read more about coverage reporting here

About

Code coverage example


Languages

Language:Python 100.0%