forked from HypothesisWorks/hypothesis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
127 lines (109 loc) · 2.52 KB
/
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
[tox]
envlist = py{26,27,33,34,35,py}-{brief,prettyquick,full,custom}
setenv=
LC_ALL=en_GB.UTF-8
passenv=HOME
[testenv]
deps =
pytest==2.8.2
flaky
whitelist_externals=
bash
setenv=
LC_ALL=en_GB.UTF-8
LANG=en_GB.UTF-8
brief: HYPOTHESIS_PROFILE=speedy
passenv=
HOME
TOXENV
commands =
full: bash scripts/basic-test.sh
brief: python -m pytest tests/cover/test_testdecorators.py
prettyquick: python -m pytest tests/cover/
custom: python -m pytest {posargs}
[testenv:py{26,27,33,34,35,py}-brief]
deps=
pytest==2.8.2
flaky
commands=
[testenv:fakefactory052]
basepython=python3.5
deps =
pytest==2.8.2
commands =
pip install --no-use-wheel fake-factory==0.5.2
python -m pytest tests/fakefactory
[testenv:fakefactory053]
basepython=python3.5
deps =
pytest==2.8.2
commands =
pip install --no-use-wheel fake-factory==0.5.3
python -m pytest tests/fakefactory
[testenv:django17]
basepython=python3.4
commands =
pip install .[datetime]
pip install --no-use-wheel .[fakefactory]
pip install django>=1.7,<1.7.99
python -m tests.django.manage test tests.django
[testenv:django18]
basepython=python3.4
commands =
pip install .[datetime]
pip install --no-use-wheel .[fakefactory]
pip install django>=1.8,<1.8.99
python -m tests.django.manage test tests.django
[testenv:nose]
basepython=python3.5
deps =
nose
flaky
commands=
nosetests --with-flaky tests/cover/test_testdecorators.py
[testenv:pytest27]
basepython=python3.5
deps =
pytest==2.7.3
flaky
commands=
python -m pytest tests/pytest tests/cover/test_testdecorators.py
[testenv:pytest26]
basepython=python2.7
deps =
pytest==2.6.3
flaky
commands=
python -m pytest tests/cover/test_testdecorators.py
[testenv:docs]
basepython=python3.4
deps = sphinx
commands=sphinx-build -W -b html -d docs/_build/doctrees docs docs/_build/html
[testenv:coverage]
basepython=python3.4
deps =
coverage
pytest==2.8.2
pytz
flaky
commands =
coverage --version
coverage debug sys
coverage run --rcfile=.coveragerc -m pytest --strict tests/cover tests/datetime tests/py3 {posargs}
coverage report -m --fail-under=100 --show-missing
[testenv:examples3]
setenv=
HYPOTHESIS_STRICT_MODE=true
basepython=python3.4
deps=pytest==2.8.2
commands=
python -m pytest examples/bintree.py
[testenv:examples2]
setenv=
HYPOTHESIS_STRICT_MODE=true
basepython=python2.7
deps=pytest==2.8.2
commands=
python -m pytest examples/bintree.py
[pytest]
addopts=--strict --tb=short -vv -p pytester