Skip to content

Commit

Permalink
ci: add tox coverage commands to making using coverage easier
Browse files Browse the repository at this point in the history
  • Loading branch information
a-dubs committed Oct 2, 2024
1 parent df1d037 commit 9b00a90
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,15 @@ commands = {envpython} -m pytest \
[testenv:py3-leak]
commands = {envpython} -X tracemalloc=40 -Wall -m pytest {posargs:tests/unittests}

# generates html coverage report from the most recent pytest run
[testenv:coverage-html]
deps = {[testenv]deps}
commands = coverage html -i

# prints out the coverage report "table" from the most recent pytest run
[testenv:coverage-report]
deps = {[testenv]deps}
commands = coverage report -i

[testenv:lowest-supported]
# Tox is going to install requirements from pip. This is fine for
Expand Down

0 comments on commit 9b00a90

Please sign in to comment.