Skip to content

Commit

Permalink
Fix coverage analysis
Browse files Browse the repository at this point in the history
Signed-off-by: Aurélien Bompard <[email protected]>
  • Loading branch information
abompard committed Oct 2, 2024
1 parent da193a0 commit 16b7234
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = checks,licenses,docs,covclean,{py39,py310}-unit,covreport
envlist = checks,licenses,docs,{py39,py310}-unit
isolated_build = true

[testenv]
Expand All @@ -11,19 +11,7 @@ allowlist_externals =
commands_pre =
poetry install
commands =
unit: poetry run pytest -vv --cov --cov-append --cov-report= fasjson/tests/unit {posargs}
depends =
{py39,py310}: covclean
covreport: py39-unit,py310-unit

[testenv:covreport]
commands =
-poetry run coverage html
poetry run coverage report -m

[testenv:covclean]
commands = poetry run coverage erase

unit: poetry run pytest -vv --cov --cov-report=html --cov-report=xml --cov-report=term-missing fasjson/tests/unit {posargs}

[testenv:docs]
changedir = docs
Expand Down

0 comments on commit 16b7234

Please sign in to comment.