[Pytest-commit] Issue #159: Support multiple environments specification in [testenv: ...] (hpk42/tox)

rutsky issues-reply at bitbucket.org
Mon Mar 17 07:45:23 CET 2014


New issue 159: Support multiple environments specification in [testenv: ...]
https://bitbucket.org/hpk42/tox/issue/159/support-multiple-environments

rutsky:

It would be convenient to specify settings for multiple environments in tox.ini.
E.g. intead of 

```
[tox]
envlist = py26, py27, py32, py33

[testenv:py26]
usedevelop=True
commands = {envpython} tests/test.py
deps = -r{toxinidir}/requirements2.txt

[testenv:py27]
usedevelop=True
commands = {envpython} tests/test.py
deps = -r{toxinidir}/requirements2.txt

[testenv:py32]
usedevelop=True
commands = {envpython} tests/test.py
deps = -r{toxinidir}/requirements3.txt

[testenv:py33]
usedevelop=True
commands = {envpython} tests/test.py
deps = -r{toxinidir}/requirements3.txt
```
specify:

```
[tox]
envlist = py26, py27, py32, py33

[testenv:py26,py27]
usedevelop=True
commands = {envpython} tests/test.py
deps = -r{toxinidir}/requirements2.txt

[testenv:py32,py33]
usedevelop=True
commands = {envpython} tests/test.py
deps = -r{toxinidir}/requirements3.txt
```






More information about the pytest-commit mailing list