Skip to content

Commit 07cb266

Browse files
committed
Add posargs when running pytests
This small change in tox.ini allow giving pytests extra arguments, for e.g. tox -e pypy-39-unit -- -k test_heartbeat_check_rate_ -s which allow running only part of the tests (useful for debug purpose). Signed-off-by: Arnaud Morin <[email protected]> Change-Id: I535acdb918c6caaae6e6ea4596437076a38f7a59
1 parent 9d7b36a commit 07cb266

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ deps=
1818
sitepackages = False
1919
recreate = False
2020
commands =
21-
unit: py.test -xv --cov=amqp --cov-report=xml --no-cov-on-fail t/unit
21+
unit: py.test -xv --cov=amqp --cov-report=xml --no-cov-on-fail t/unit {posargs}
2222
integration: py.test -xv -E rabbitmq t/integration {posargs:-n2}
2323
basepython =
2424
flake8,apicheck,linkcheck,pydocstyle: python3.8

0 commit comments

Comments
 (0)