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
1 changed files with 1 additions and 2 deletions
3
tox.ini
3
tox.ini
|
|
@ -40,11 +40,10 @@ deps =
|
|||
-rtest-requirements.txt
|
||||
whitelist_externals =
|
||||
sh
|
||||
make
|
||||
commands =
|
||||
sh -c 'find . -name "__pycache__" -exec rm -rf \{\} +'
|
||||
pip install --force-reinstall pytest mock
|
||||
make test
|
||||
pytest {posargs}
|
||||
|
||||
[flake8]
|
||||
exclude = doc/*,*.pyc,*.py~,*.in,*.spec,*.sh,*.rst
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue