forked from ulif/diceware
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
46 lines (39 loc) · 1005 Bytes
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
[pytest]
markers =
packaging: mark tests to be purely packaging related.
addopts = --doctest-modules --doctest-glob='*.rst' -m 'not packaging'
diceware tests docs README.rst
[tox]
envlist = flake8, pypy, pypy3, py26, py27, py33, py34, py35, py36, py37, py38, coverage, pkg
[testenv]
usedevelop=True
recreate=True
# py.test 2.8.2 cannot handle --doctest-modules and autouse fixtures
# See https://github.com/pytest-dev/pytest/issues/1057
deps=pytest>=2.8.3
commands=
py.test
[testenv:py26]
# versions still supporting py26.
deps=
pytest==3.2.5
setuptools==36.8.0
[testenv:py33]
# versions still supporting py33.
deps=
pytest==3.2.5
[testenv:flake8]
deps=flake8
commands=flake8 diceware tests setup.py
[testenv:coverage]
deps=coverage
commands=
coverage erase
coverage run setup.py test
coverage report --include='diceware*,setup.py' -m --fail-under=100
[testenv:pkg]
# run only tests marked as 'packaging'-related
deps=
pytest==3.2.5
commands=
py.test -m 'packaging'