2023-07-08 17:13:39 +02:00
|
|
|
[tox]
|
|
|
|
env_list =
|
2023-07-08 17:26:09 +02:00
|
|
|
clean,py39,py310,py311,report
|
2023-07-08 17:13:39 +02:00
|
|
|
minversion = 4.6.4
|
|
|
|
|
2023-07-08 17:26:09 +02:00
|
|
|
[coverage:paths]
|
|
|
|
source =
|
|
|
|
gvacommon
|
|
|
|
|
|
|
|
[coverage:report]
|
|
|
|
omit =
|
|
|
|
gvacommon/tests/*
|
|
|
|
|
2023-07-08 17:13:39 +02:00
|
|
|
[testenv]
|
|
|
|
description = run the tests with pytest
|
|
|
|
package = wheel
|
|
|
|
wheel_build_env = .pkg
|
|
|
|
deps =
|
|
|
|
pytest>=6
|
2023-07-08 17:26:09 +02:00
|
|
|
pytest-cov
|
2023-07-08 17:13:39 +02:00
|
|
|
commands =
|
2023-07-08 17:26:09 +02:00
|
|
|
pytest --cov --cov-append --cov-report=term-missing {tty:--color=yes} {posargs}
|
|
|
|
|
|
|
|
[testenv:report]
|
|
|
|
deps = coverage
|
|
|
|
skip_install = true
|
|
|
|
commands =
|
|
|
|
coverage report -m
|
|
|
|
coverage html
|
|
|
|
|
|
|
|
[testenv:clean]
|
|
|
|
deps = coverage
|
|
|
|
skip_install = true
|
|
|
|
commands = coverage erase
|