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.
_______________________________________________
pytest-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pytest-commit