Skip to content

Commit

Permalink
Use pytest and friends in tox
Browse files Browse the repository at this point in the history
  • Loading branch information
hexchain committed Feb 17, 2022
1 parent 9a38cb7 commit a47a222
Showing 1 changed file with 35 additions and 13 deletions.
48 changes: 35 additions & 13 deletions tox.ini
@@ -1,23 +1,45 @@
[tox]
envlist = {py36,py37,py38,py39,py310}-{linux,macos,windows}
minversion = 2.0
envlist = clean,py3{6,7,8,9,10},report
skip_missing_interpreters = True

[testenv]
deps =
aiofiles
bcrypt>=3.1.3
coverage
linux,macos: gssapi>=1.2.0
fido2>=0.9.2
gssapi>=1.2.0 ; sys.platform != 'win32'
libnacl>=1.4.2
pyOpenSSL>=17.0.0
python-pkcs11>=0.7.0
pytest
pytest-cov
pytest-timeout
pytest-xdist
python-pkcs11>=0.7.0 ; sys.platform != 'win32'
pywin32>=227 ; sys.platform == 'win32'
setuptools>=18.5
windows: pywin32>=227
{py36,py37,py38,py39,py310}-{linux,macos}: uvloop>=0.9.1
platform =
linux: linux
macos: darwin
windows: win32
sitepackages = True
skip_missing_interpreters = True
uvloop>=0.9.1 ; sys.platform != 'win32'
usedevelop = True
setenv =
py3{6,7,8,9,10}: COVERAGE_FILE = .coverage.{envname}
commands =
{envpython} -m pytest --cov --cov-report=term-missing:skip-covered --durations 10 --timeout 300 -n auto {posargs}
depends =
py3{6,7,8,9,10}: clean
report: py3{6,7,8,9,10}

[testenv:clean]
deps = coverage
skip_install = true
commands = coverage erase

[testenv:report]
deps = coverage
skip_install = true
commands =
{envpython} -m coverage run -p -m unittest
coverage combine
coverage html
coverage report --show-missing

[tool:pytest]
testpaths = tests

0 comments on commit a47a222

Please sign in to comment.