|
1 | 1 | [tox] |
2 | | -envlist = {py36,py37,py38,py39,py310}-{linux,macos,windows} |
| 2 | +minversion = 3.7 |
| 3 | +envlist = clean,{py36,py37,py38,py39,py310}-{linux,darwin,windows},report |
| 4 | +skip_missing_interpreters = True |
3 | 5 |
|
4 | 6 | [testenv] |
5 | 7 | deps = |
| 8 | + aiofiles>=0.6.0 |
6 | 9 | bcrypt>=3.1.3 |
7 | | - coverage |
8 | | - linux,macos: gssapi>=1.2.0 |
| 10 | + fido2>=0.9.2 |
9 | 11 | libnacl>=1.4.2 |
10 | 12 | pyOpenSSL>=17.0.0 |
11 | | - python-pkcs11>=0.7.0 |
| 13 | + pytest>=7.0.1 |
| 14 | + pytest-cov>=3.0.0 |
12 | 15 | setuptools>=18.5 |
| 16 | + linux,darwin: gssapi>=1.2.0 |
| 17 | + linux,darwin: python-pkcs11>=0.7.0 |
| 18 | + linux,darwin: uvloop>=0.9.1 |
13 | 19 | windows: pywin32>=227 |
14 | | - {py36,py37,py38,py39,py310}-{linux,macos}: uvloop>=0.9.1 |
15 | 20 | platform = |
16 | 21 | linux: linux |
17 | | - macos: darwin |
| 22 | + darwin: darwin |
18 | 23 | windows: win32 |
19 | | -sitepackages = True |
20 | | -skip_missing_interpreters = True |
21 | 24 | usedevelop = True |
| 25 | +setenv = |
| 26 | + {py36,py37,py38,py39,py310}-{linux,darwin,windows}: COVERAGE_FILE = .coverage.{envname} |
| 27 | +commands = |
| 28 | + {envpython} -m pytest --cov --cov-report=term-missing:skip-covered {posargs} |
| 29 | +depends = |
| 30 | + {py36,py37,py38,py39,py310}-{linux,darwin,windows}: clean |
| 31 | + report: {py36,py37,py38,py39,py310}-{linux,darwin,windows} |
| 32 | + |
| 33 | +[testenv:clean] |
| 34 | +deps = coverage |
| 35 | +skip_install = true |
| 36 | +commands = coverage erase |
| 37 | + |
| 38 | +[testenv:report] |
| 39 | +deps = coverage |
| 40 | +skip_install = true |
| 41 | +parallel_show_output = true |
22 | 42 | commands = |
23 | | - {envpython} -m coverage run -p -m unittest |
| 43 | + coverage combine |
| 44 | + coverage report --show-missing |
| 45 | + coverage html |
| 46 | + |
| 47 | +[pytest] |
| 48 | +testpaths = tests |
0 commit comments