forked from hypothesis/h
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
57 lines (51 loc) · 995 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
47
48
49
50
51
52
53
54
55
56
57
[tox]
envlist = py27
skipsdist = true
[pytest]
minversion = 2.8
addopts = --pyargs
testpaths = tests
[testenv]
skip_install = true
# N.B. "hypothesis" in the list below is the property-based testing library,
# not our own code.
deps =
coverage
mock
pytest
hypothesis
factory-boy
-rrequirements.txt
passenv =
TEST_DATABASE_URL
PYTEST_ADDOPTS
commands =
coverage run --parallel --source h,tests/h -m pytest {posargs:tests/h/}
[testenv:functional]
skip_install = true
deps =
pytest
webtest
factory-boy
-rrequirements.txt
passenv =
BROKER_URL
ELASTICSEARCH_HOST
TEST_DATABASE_URL
PYTEST_ADDOPTS
commands = py.test {posargs:tests/functional/}
[testenv:clean]
deps = coverage
skip_install = true
commands = coverage erase
[testenv:coverage]
deps = coverage
skip_install = true
commands =
coverage combine
coverage report
[testenv:codecov]
deps = codecov
skip_install = true
passenv = CI TRAVIS*
commands = codecov