Enable passing test regex to testr from tox

This will enable us to pass a regex to tox (such as we already can for
testr) of what tests we want to execute. So we can do stuff like this:

$ tox -e py27,py33 -- test_barbican

Which will execute the tests that match that "test_barbican" argument
(which will actually be the tests in the test_barbican module) on the
given environments.

Change-Id: Id81b8ab4829c25454ee049b22e3e13a551055946
This commit is contained in:
Juan Antonio Osorio Robles
2015-01-02 16:34:03 +02:00
parent 21ab8aaed6
commit 173c03f291

View File

@@ -11,7 +11,7 @@ setenv =
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
python setup.py testr --coverage
python setup.py testr --coverage --testr-args='{posargs}'
coverage combine
coverage report -m