From b17090319ad62d89b325e7f5ff14625acfe86621 Mon Sep 17 00:00:00 2001 From: msramalho <19508417+msramalho@users.noreply.github.com> Date: Wed, 23 Oct 2024 10:43:35 +0100 Subject: [PATCH] closes #14 closes #21 --- README.md | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 236aba6..102fd2d 100644 --- a/README.md +++ b/README.md @@ -75,17 +75,14 @@ curl -XPOST -H "Authorization: Bearer GOOGLE_OAUTH_TOKEN" -H "Content-type: appl ```bash # can be done from top level but let's do it from the src folder for consistency with CI etc cd src -# run tests -PYTHONPATH=. pipenv run pytest -v --color=yes tests/ +# run tests and generate coverage +PYTHONPATH=. PIPENV_DOTENV_LOCATION=.env.test pipenv run coverage run -m pytest -vv --disable-warnings --color=yes tests/ && pipenv run coverage html -# TO GET COVERAGE -# run tests with coverage instead -PYTHONPATH=. pipenv run coverage run -m pytest -v --color=yes tests/ - -# get coverage +# get coverage report in command line pipenv run coverage report -# get coverage HTML +# get coverage HTML pipenv run coverage html + # > open/run server on htmlcov/index.html to navigate through line coverage ``` \ No newline at end of file