diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2022-07-01 09:49:58 +0200 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2022-07-07 10:43:38 +0200 |
commit | 861f79d46397d8bbc5b55b95bc4ca2ac0fb1f247 (patch) | |
tree | e396c5e2e67e6045dedea9f54163a8fa8880d277 /tox.ini | |
parent | 4c91aa8d974d95fec6b39741102327716a7cf20d (diff) |
Update to Alpine 3.16
It also switches to pytest because
nose fails vs py3.10.
Change-Id: I920baef12d4934b359873519d5518835007c2f02
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 42 |
1 files changed, 18 insertions, 24 deletions
@@ -1,5 +1,5 @@ [tox] -envlist = docs,pep8,pylint,yamllint,bashate,py39,cover,perm +envlist = docs,pep8,pylint,yamllint,bashate,py310,cover,perm skipsdist = True [testenv] @@ -11,33 +11,32 @@ deps = -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt install_command = pip install {opts} {packages} -commands = nosetests --with-xunit \ - --with-coverage \ - --cover-tests \ - --cover-package=xtesting \ - --cover-xml \ - --cover-html \ - xtesting/tests/unit +commands = + pytest xtesting/tests/unit \ + --junit-xml=junit.xml \ + --html=report.html --self-contained-html \ + --cov=xtesting --cov-reset --cov-report html \ + xtesting/tests/unit [testenv:docs] -basepython = python3.9 +basepython = python3.10 commands = doc8 README.rst api --ignore-path api/build sphinx-build -W -b html api/ api/build [testenv:pep8] -basepython = python3.9 +basepython = python3.10 commands = flake8 [testenv:pylint] -basepython = python3.9 +basepython = python3.10 whitelist_externals = bash commands = pylint --min-similarity-lines=10 \ --disable=locally-disabled --ignore-imports=y --reports=n --extension-pkg-whitelist=lxml xtesting [testenv:yamllint] -basepython = python3.9 +basepython = python3.10 files = .travis.yml ansible @@ -45,33 +44,28 @@ files = commands = yamllint -s {[testenv:yamllint]files} -[testenv:py38] -commands = nosetests xtesting/tests/unit - [testenv:bashate] -basepython = python3.9 +basepython = python3.10 files = build.sh commands = bashate {[testenv:bashate]files} [testenv:bandit] -basepython = python3.9 +basepython = python3.10 commands = bandit -r xtesting -x tests -n 5 -ll -s B602 [testenv:cover] -basepython = python3.9 +basepython = python3.10 dirs = xtesting/tests/unit/ci xtesting/tests/unit/core xtesting/tests/unit/utils/test_decorators.py -commands = nosetests --with-coverage --cover-tests \ - --cover-package xtesting.core \ - --cover-package xtesting.tests.unit \ - --cover-package xtesting.utils.decorators \ - --cover-min-percentage 100 {[testenv:cover]dirs} +commands = + pytest --cov=xtesting --cov-reset --cov-report html --cov-fail-under=100 \ + {[testenv:cover]dirs} [testenv:perm] -basepython = python3.9 +basepython = python3.10 whitelist_externals = bash path=. -not -path './.tox/*' -not -path './.git/*' -not -path './doc/reveal.js/*' commands = |