2013-08-17 23:57:33 +08:00
|
|
|
[tox]
|
2019-07-04 22:20:39 +08:00
|
|
|
distshare = {homedir}/.tox/distshare
|
|
|
|
envlist = py27-pytestlatest-linters,
|
|
|
|
py27-pytest{36,37,38,39,310,4,41,42,43,44,45,46},
|
|
|
|
py37-pytest{36,37,38,39,310,4,41,42,43,44,45,46,5,latest},
|
2019-08-18 06:09:36 +08:00
|
|
|
py{35,36,38}-pytestlatest,
|
2019-07-04 22:20:39 +08:00
|
|
|
py27-pytestlatest-xdist
|
2015-03-18 08:00:53 +08:00
|
|
|
skip_missing_interpreters = true
|
2013-08-17 23:57:33 +08:00
|
|
|
|
|
|
|
[testenv]
|
2018-11-02 19:11:47 +08:00
|
|
|
deps =
|
|
|
|
pytestlatest: pytest
|
2019-07-04 22:20:39 +08:00
|
|
|
pytest5: pytest~=5.0.0
|
|
|
|
pytest46: pytest~=4.6.0
|
|
|
|
pytest45: pytest~=4.5.0
|
|
|
|
pytest44: pytest~=4.4.0
|
|
|
|
pytest43: pytest~=4.3.0
|
2019-02-17 18:35:06 +08:00
|
|
|
pytest42: pytest~=4.2.0
|
|
|
|
pytest41: pytest~=4.1.0
|
2019-07-04 22:20:39 +08:00
|
|
|
pytest4: pytest~=4.0.0
|
2018-11-22 17:32:09 +08:00
|
|
|
pytest310: pytest~=3.10.0
|
2018-11-02 19:11:47 +08:00
|
|
|
pytest39: pytest~=3.9.0
|
|
|
|
pytest38: pytest~=3.8.0
|
|
|
|
pytest37: pytest~=3.7.0
|
|
|
|
pytest36: pytest~=3.6.0
|
|
|
|
-r{toxinidir}/requirements-testing.txt
|
|
|
|
commands = py.test tests --junitxml={envlogdir}/junit-{envname}.xml
|
2013-08-17 23:57:33 +08:00
|
|
|
|
2018-11-02 19:11:47 +08:00
|
|
|
[testenv:py27-pytestlatest-linters]
|
2019-07-04 22:38:38 +08:00
|
|
|
commands = pycodestyle pytest_bdd tests
|
2013-08-17 23:57:33 +08:00
|
|
|
|
2018-11-02 19:11:47 +08:00
|
|
|
[testenv:py27-pytestlatest-xdist]
|
2013-12-11 07:16:57 +08:00
|
|
|
deps =
|
2018-11-02 19:11:47 +08:00
|
|
|
pytest-xdist
|
2013-12-11 07:16:57 +08:00
|
|
|
{[testenv]deps}
|
2019-07-04 22:20:39 +08:00
|
|
|
commands = {[testenv]commands} -n3 -rfsxX
|
2018-11-02 05:05:45 +08:00
|
|
|
|
2018-11-02 19:11:47 +08:00
|
|
|
[testenv:py27-pytestlatest-coveralls]
|
2015-06-24 07:16:10 +08:00
|
|
|
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
|
2018-11-02 19:11:47 +08:00
|
|
|
usedevelop = True
|
|
|
|
changedir = .
|
2015-06-24 07:16:10 +08:00
|
|
|
deps =
|
|
|
|
{[testenv]deps}
|
|
|
|
coveralls
|
2019-07-04 22:20:39 +08:00
|
|
|
commands =
|
2018-11-02 19:11:47 +08:00
|
|
|
coverage run --branch --source=pytest_bdd {envbindir}/pytest tests
|
2015-06-24 07:16:10 +08:00
|
|
|
coverage report -m
|
|
|
|
coveralls
|