mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-10-31 21:44:23 +00:00
93a58c5496
This doesn't actually *ignore* errors, it just means we continue running commands after one errors out instead of immediately bailing. This avoids problems like "the tests don't run if check-needles fails, so then the coverage reports fail because there's no coverage.xml". Signed-off-by: Adam Williamson <awilliam@redhat.com>
31 lines
769 B
INI
31 lines
769 B
INI
[tox]
|
|
skipsdist = True
|
|
envlist = py37,py38,py39,py310,py311,coverage-report
|
|
skip_missing_interpreters = true
|
|
[testenv]
|
|
ignore_errors = true
|
|
deps =
|
|
pytest
|
|
jsonschema
|
|
coverage
|
|
pytest-cov
|
|
commands=
|
|
python ./fifloader.py --clean templates.fif.json templates-updates.fif.json
|
|
python ./check-needles.py
|
|
py.test unittests/
|
|
py.test --cov-report term-missing --cov-report xml --cov fifloader unittests/
|
|
setenv =
|
|
PYTHONPATH = {toxinidir}
|
|
|
|
[testenv:coverage-report]
|
|
skip_install = true
|
|
ignore_errors = true
|
|
deps =
|
|
diff-cover
|
|
pylint
|
|
commands =
|
|
diff-cover coverage.xml --fail-under=90 --compare-branch=origin/main
|
|
diff-quality --violations=pylint --fail-under=90 --compare-branch=origin/main
|
|
setenv =
|
|
PYTHONPATH = {toxinidir}
|