Skip to content

Commit

Permalink
Add posargs when running pytests
Browse files Browse the repository at this point in the history
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 <arnaud.morin@ovhcloud.com>
Change-Id: I535acdb918c6caaae6e6ea4596437076a38f7a59
  • Loading branch information
arnaudmorin authored and auvipy committed Jun 14, 2023
1 parent 5120c53 commit ab1edf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ deps=
sitepackages = False
recreate = False
commands =
unit: py.test -xv --cov=amqp --cov-report=xml --no-cov-on-fail t/unit
unit: py.test -xv --cov=amqp --cov-report=xml --no-cov-on-fail t/unit {posargs}
integration: py.test -xv -E rabbitmq t/integration {posargs:-n2}
basepython =
flake8,apicheck,linkcheck,pydocstyle: python3.8
Expand Down

0 comments on commit ab1edf9

Please sign in to comment.