-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
43 lines (38 loc) · 1.16 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
# ============================================================================
# TOX CONFIGURATION
# ============================================================================
# distshare.default := {homedir}/.tox/distshare
#
# SEE ALSO:
# * http://tox.testrun.org/latest/config.html
# ============================================================================
# py.test --confcutdir=examples --basetemp={envtmpdir} {posargs}
# py.test --tb=line -v --junitxml=junit-{envname}.xml
[tox]
minversion = 1.4
envlist = py26, py27, py35
indexserver =
default = https://pypi.python.org/simple
# -----------------------------------------------------------------------------
# SECTION: testenv
# -----------------------------------------------------------------------------
# changedir = {toxworkdir}/{envname}
# pytest --basetemp={envtmpdir} {posargs}
[testenv]
commands=
pytest --html=report.html {posargs}
deps=
pytest>=3.0
pytest-html
setenv=
PYTHONPATH={toxinidir}
[testenv:coverage]
commands=
coverage run -m pytest {posargs}
coverage combine
coverage html
deps=
{[testenv]deps}
coverage>=4.2
setenv=
PYTHONPATH={toxinidir}