Use pytest directly incl. support for posargs, e.g.:
tox -- -s -vvv tests/path/to/a/single/test_something.py Signed-off-by: Filip Valder <fvalder@redhat.com>
This commit is contained in:
parent
a7c111643d
commit
efff2c9504
3
tox.ini
3
tox.ini
@ -40,11 +40,10 @@ deps =
|
|||||||
-rtest-requirements.txt
|
-rtest-requirements.txt
|
||||||
whitelist_externals =
|
whitelist_externals =
|
||||||
sh
|
sh
|
||||||
make
|
|
||||||
commands =
|
commands =
|
||||||
sh -c 'find . -name "__pycache__" -exec rm -rf \{\} +'
|
sh -c 'find . -name "__pycache__" -exec rm -rf \{\} +'
|
||||||
pip install --force-reinstall pytest mock
|
pip install --force-reinstall pytest mock
|
||||||
make test
|
pytest {posargs}
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
exclude = doc/*,*.pyc,*.py~,*.in,*.spec,*.sh,*.rst
|
exclude = doc/*,*.pyc,*.py~,*.in,*.spec,*.sh,*.rst
|
||||||
|
Loading…
Reference in New Issue
Block a user