mirror of https://github.com/OpenKMIP/PyKMIP.git
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:
parent
0961687d66
commit
35b2381341
2
tox.ini
2
tox.ini
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue