forked from pytest-dev/pytest-bdd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
42 lines (36 loc) · 1.01 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]
distshare={homedir}/.tox/distshare
#envlist=linters,py27,py27-xdist,py27-pytest-latest,py34
envlist=linters,py27,py27-pytest-latest,py34
skip_missing_interpreters = true
[testenv]
commands= py.test tests --junitxml={envlogdir}/junit-{envname}.xml
deps = -r{toxinidir}/requirements-testing.txt
[testenv:linters]
interpreter=python2.7
commands={[testenv]commands} pytest_bdd --pep8 -m pep8
[testenv:py27-xdist]
basepython=python2.7
commands=
py.test pytest_bdd tests -n3 --pep8 -rfsxX \
--junitxml={envlogdir}/junit-{envname}.xml
[testenv:py27-pytest-latest]
basepython=python2.7
deps =
{[testenv]deps}
git+https://github.com/pytest-dev/py#egg=py
git+https://github.com/pytest-dev/pytest.git@features#egg=pytest
[testenv:coveralls]
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
usedevelop=True
changedir=.
deps =
{[testenv]deps}
coveralls
commands=
coverage run --source=pytest_bdd {envdir}/bin/py.test tests
coverage report -m
coveralls
[pytest]
pep8maxlinelength=120
addopts=-vvl