forked from HypothesisWorks/hypothesis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
191 lines (162 loc) · 3.82 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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
[tox]
envlist = py{35,36,37}-{brief,prettyquick,full,custom}
toxworkdir={env:TOX_WORK_DIR:.tox}
[testenv]
deps =
-r../requirements/test.txt
whitelist_externals=
bash
passenv=
HOME
LC_ALL
COVERAGE_FILE
TOXENV
setenv=
brief: HYPOTHESIS_PROFILE=speedy
commands =
full: bash scripts/basic-test.sh
brief: python -m pytest tests/cover/test_testdecorators.py {posargs}
prettyquick: python -m pytest tests/cover/
custom: python -m pytest {posargs}
[testenv:py27-full]
deps =
-r../requirements/test2.txt
whitelist_externals=
bash
commands =
bash scripts/basic-test.sh
[testenv:pypy-full]
deps =
-r../requirements/test2.txt
whitelist_externals=
bash
commands =
bash scripts/basic-test.sh
[testenv:quality]
deps=
-r../requirements/test.txt
commands=
python -m pytest tests/quality/ -n2
[testenv:quality2]
basepython=python2.7
deps=
-r../requirements/test2.txt
commands=
python -m pytest tests/quality/
[testenv:py27typing]
basepython=python2.7
deps=
-r../requirements/test2.txt
-r../requirements/typing.txt
commands=
python -m pytest tests/cover/ -n2
[testenv:unicode]
basepython=python2.7
deps =
unicode-nazi
setenv=
UNICODENAZI=true
PYTHONPATH=.
commands=
python scripts/unicodechecker.py
[testenv:pandas19]
deps =
-r../requirements/test.txt
pandas~=0.19.2
commands =
python -m pytest tests/pandas -n2
[testenv:pandas20]
deps =
-r../requirements/test.txt
pandas~=0.20.3
commands =
python -m pytest tests/pandas -n2
[testenv:pandas21]
deps =
-r../requirements/test.txt
pandas~=0.21.0
commands =
python -m pytest tests/pandas -n2
[testenv:pandas22]
deps =
-r../requirements/test.txt
pandas~=0.22.0
commands =
python -m pytest tests/pandas -n2
[testenv:pandas23]
deps =
-r../requirements/test.txt
pandas~=0.23.0
commands =
python -m pytest tests/pandas -n2
[testenv:pandas24]
deps =
-r../requirements/test.txt
pandas~=0.24.0
commands =
python -m pytest tests/pandas -n2
[testenv:django111]
commands =
pip install .[pytz]
pip install django~=1.11.7
python -m tests.django.manage test tests.django
[testenv:django20]
commands =
pip install .[pytz]
pip install django~=2.0.1
python -m tests.django.manage test tests.django
[testenv:django21]
commands =
pip install .[pytz]
pip install django~=2.1.0
python -m tests.django.manage test tests.django
[testenv:django22]
commands =
pip install .[pytz]
pip install django~=2.2.0
python -m tests.django.manage test tests.django
[testenv:nose]
deps =
nose
commands=
nosetests tests/cover/test_testdecorators.py
[testenv:pytest30]
deps =
-r../requirements/test.txt
commands=
pip install pytest==3.0 pytest-xdist==1.24 pytest-forked==0.2
python -m pytest tests/pytest tests/cover/test_testdecorators.py
[testenv:coverage]
deps =
-r../requirements/test.txt
-r../requirements/coverage.txt
whitelist_externals=
rm
setenv=
HYPOTHESIS_INTERNAL_COVERAGE=true
commands =
rm -f branch-check
python -m coverage --version
python -m coverage debug sys
python -m coverage run --rcfile=.coveragerc -m pytest -n0 --strict tests/cover tests/datetime tests/py3 tests/numpy tests/pandas tests/lark --ff {posargs}
python -m coverage report -m --fail-under=100 --show-missing --skip-covered
python scripts/validate_branch_check.py
[testenv:pypy-with-tracer]
setenv=
HYPOTHESIS_PROFILE=with_coverage
basepython=pypy
deps =
-r../requirements/test2.txt
commands =
python -m pytest tests/cover/test_testdecorators.py tests/nocover/test_coverage.py -n 0 {posargs}
[testenv:examples3]
deps=
-r../requirements/test.txt
commands=
python -m pytest examples
[testenv:examples2]
basepython=python2.7
deps=
-r../requirements/test2.txt
commands=
python -m pytest examples