Skip to content

Commit

Permalink
Add coverage environment to tox.ini (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
garrison authored Oct 5, 2022
1 parent a57f305 commit 47b02dd
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
minversion = 3.25
envlist = py{37,38,39}{,-notebook}, lint, mypy
envlist = py{37,38,39}{,-notebook}, lint, mypy, coverage
isolated_build = True

[testenv]
Expand Down Expand Up @@ -32,5 +32,15 @@ extras =
commands =
pytest --nbmake --nbmake-timeout=3000 --ignore-glob=*serverless* docs/

[testenv:coverage]
deps =
{[testenv]deps}
coverage>=5.5
commands =
coverage3 run --source circuit_knitting_toolbox --parallel-mode -m pytest test/ {posargs}
coverage3 combine
coverage3 html
coverage3 report --fail-under=50

[pytest]
addopts = --doctest-modules

0 comments on commit 47b02dd

Please sign in to comment.