From aa55b12bcb712d377649f31e287d27d71ec3ec8a Mon Sep 17 00:00:00 2001 From: adam Date: Fri, 12 Jan 2024 16:38:01 -0700 Subject: [PATCH] fix coverage --- tox.ini | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/tox.ini b/tox.ini index 938f80b..6e0b98f 100644 --- a/tox.ini +++ b/tox.ini @@ -12,14 +12,6 @@ deps = -rrequirements/main.txt -rrequirements/dev.txt -[testenv:coverage-report] -description = Compile coverage from each test run. -skip_install = true -deps = coverage[toml]>=5.0.2 -depends = - py-coverage -commands = coverage report - [testenv:lint] description = Lint codebase by running pre-commit (Black, isort, Flake8) skip_install = true @@ -30,12 +22,15 @@ commands = pre-commit run --all-files [testenv:py] description = Run pytest commands = - pytest -vv {posargs} + pytest -vv {posargs} --cov=giftless -[testenv:py-coverage] -description = Run pytest with Docker prerequisites and coverage analysis -commands = - pytest -vv --cov=giftless --cov-branch --cov-report= {posargs} +[testenv:coverage-report] +description = Compile coverage from each test run. +skip_install = true +deps = coverage[toml]>=5.0.2 +depends = + py-coverage +commands = coverage report [testenv:docs] description = Build documentation (HTML) with Sphinx