[Pytest-commit] Issue #174: Allow testenv to be "non-voting" (optional) (hpk42/tox)
Alexandre Conrad
issues-reply at bitbucket.org
Wed May 28 03:13:44 CEST 2014
New issue 174: Allow testenv to be "non-voting" (optional)
https://bitbucket.org/hpk42/tox/issue/174/allow-testenv-to-be-non-voting-optional
Alexandre Conrad:
I would like to see an option that tells tox to not fail for testenvs / jobs that are considered optional.
For example, if I have a section [testenv:pep8] I don't want tox to fail if I mark it as non-voting. So if a testenv returns a non-zero status (failure) then tox would still exit with a zero status but display a warning that a non-voting test failed.
```
#!ini
[tox]
skipsdist = True
envlist = py26, py27, pep8
[testenv]
commands =
pip install -e .
pip install -r test-requirements.txt
py.test {posargs}
[testenv:pep8]
voting = False
commands =
pip install pep8
pep8 --ignore=E501 surveyservice/
```
If this is considered a good idea, I'd like to try implementing it.
More information about the pytest-commit
mailing list