mirror of
https://github.com/openkmip/pykmip
synced 2026-01-16 15:33:40 +00:00
This change reorganizes the test suite, splitting it into two separate test suites, one for unit tests and one for integration tests. The tox configuration is also updated to reflect this change. Invoking tox now runs the unit tests by default. A separate tox environment is used to run the integration tests.
24 lines
558 B
INI
24 lines
558 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
|
|
|
|
[flake8]
|
|
exclude = .git,.tox,dist,rpmbuild,*.egg-info
|