tox.ini: generate HTML coverage output

This makes it trivial to inspect, line by line, what got covered.
That is useful when evaluating coverage for a new feature.

Signed-off-by: Martí Bolívar <mbolivar@amperecomputing.com>
This commit is contained in:
Martí Bolívar 2023-09-27 12:51:36 -07:00 committed by Marc Herbert
parent 775dce9cc6
commit 113ff95ec5
1 changed files with 1 additions and 1 deletions

View File

@ -37,6 +37,6 @@ setenv =
# For instance: ./.tox/py3/tmp/ # For instance: ./.tox/py3/tmp/
TOXTEMPDIR={envtmpdir} TOXTEMPDIR={envtmpdir}
commands = commands =
python -m pytest --cov=west {posargs:tests} --basetemp='{envtmpdir}/pytest with space/' python -m pytest --cov-report=html --cov=west {posargs:tests} --basetemp='{envtmpdir}/pytest with space/'
python -m flake8 --config='{toxinidir}'/tox.ini '{toxinidir}' python -m flake8 --config='{toxinidir}'/tox.ini '{toxinidir}'
python -m mypy --config-file='{toxinidir}'/tox.ini --package=west python -m mypy --config-file='{toxinidir}'/tox.ini --package=west