Skip to content

Allow testenv to be "non-voting" (optional) #174

@pytoxbot

Description

@pytoxbot

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 myproject/

If this is considered a good idea, I'd like to try implementing it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions