diff --git a/tox.ini b/tox.ini index 576c61aebf5..25827adf9e8 100644 --- a/tox.ini +++ b/tox.ini @@ -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