Update the unit tests to reflect all changes made rename the command line tool to "keep" and add it to setup.py Add nosetest to tox
42 lines
1.1 KiB
INI
42 lines
1.1 KiB
INI
# Tox (http://tox.testrun.org/) is a tool for running tests
|
|
# in multiple virtualenvs. This configuration file will run the
|
|
# test suite on all supported python versions. To use it, "pip install tox"
|
|
# and then run "tox" from this directory.
|
|
|
|
[tox]
|
|
envlist = py26, py27
|
|
|
|
[testenv]
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
LANG=en_US.UTF-8
|
|
LANGUAGE=en_US:en
|
|
LC_ALL=C
|
|
OS_STDOUT_NOCAPTURE=False
|
|
OS_STDERR_NOCAPTURE=False
|
|
|
|
deps = -r{toxinidir}/tools/pip-requires
|
|
-r{toxinidir}/tools/test-requires
|
|
|
|
[testenv:pep8]
|
|
commands = flake8
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:cover]
|
|
commands = nosetests --with-coverage --cover-package=barbicanclient
|
|
|
|
[tox:jenkins]
|
|
downloadcache = ~/cache/pip
|
|
|
|
[flake8]
|
|
ignore = F,H
|
|
show-source = True
|
|
exclude = .venv,.tox,dist,doc,*egg
|
|
|
|
[testenv:py26]
|
|
commands = nosetests {posargs:--with-xcoverage --all-modules --cover-inclusive --traverse-namespace --with-xunit --cover-package=barbican}
|
|
|
|
[testenv:py27]
|
|
commands = nosetests {posargs:--with-xcoverage --all-modules --cover-inclusive --traverse-namespace --with-xunit --cover-package=barbican}
|