From 6d02c79557f19151516be001d3be9c17760aca65 Mon Sep 17 00:00:00 2001 From: Cosimo Lupo Date: Fri, 19 Aug 2016 11:36:39 +0100 Subject: [PATCH] tox.ini: add {posargs} to pass additional command line arguments to py.test When invoking the tox command, the arguments after the -- will be passed on to the py.test command: For example: $ tox -- -x -s -k 'test_something or test_other' http://tox.readthedocs.io/en/1.0/example/general.html#interactively-passing-positional-arguments --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 709f86e96..ec13335a3 100644 --- a/tox.ini +++ b/tox.ini @@ -17,7 +17,7 @@ commands = {envpython} -c "import sys; print(sys.version)" {envpython} -c "import struct; print(struct.calcsize('P') * 8)" # run the test suite - py.test + py.test {posargs} [testenv:coveralls] passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH