Add positional arguments to pytest calls in tox.ini

This change adds a posargs argument to the call to pytest that is
used when invoking unit tests for individual Python versions. This
allows developers to specify which tests or test suites they want
to invoke. For example, use the following to run the unit test
suites related to the GetAttributeList payloads for Python 2.7:

tox -r -e py27 -- -k TestGetAttributeList

Developers can still use tox to run the entire test suite, like
before:

tox -r -e py27
This commit is contained in:
Peter Hamilton 2019-04-04 09:21:11 -04:00 committed by Peter Hamilton
parent 0961687d66
commit 35b2381341
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
coverage run --source=kmip/ --omit=kmip/demos/*,kmip/tests/* -m pytest --strict kmip/tests/unit
coverage run --source=kmip/ --omit=kmip/demos/*,kmip/tests/* -m pytest --strict kmip/tests/unit {posargs}
coverage report -m
coverage html