2
0
mirror of https://github.com/openkmip/pykmip synced 2026-01-07 11:03:16 +00:00
Files
pykmip/tox.ini
Peter Hamilton 6606c989fb Adding config argument to integration test suite
This change adds a pytest config argument, allowing the integration test
suite to be run with the client configured with a specific section from
the PyKMIP configuration file. A simple integration test class is added
to demonstrate how to use the client created using the config argument.

To run the integration test suite with a specific configuration, use:

$ tox -e integration -- --config <config-section>

where <config-section> is the name of the config file section to use for
the PyKMIP client.
2015-05-20 12:08:59 -04:00

24 lines
568 B
INI

[tox]
envlist = pep8,py26,py27,py33,py34
[testenv]
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 report -m
coverage html
[testenv:pep8]
commands = flake8 kmip/
[testenv:integration]
# Note: This requires local or remote access to a KMIP appliance or service
deps = {[testenv]deps}
commands =
py.test --strict kmip/tests/integration {posargs}
[flake8]
exclude = .git,.tox,dist,rpmbuild,*.egg-info