diff options
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 42 |
1 files changed, 22 insertions, 20 deletions
@@ -14,45 +14,47 @@ setenv = VIRTUAL_ENV={envdir} NOSE_OPENSTACK_YELLOW=0.025 NOSE_OPENSTACK_SHOW_ELAPSED=1 NOSE_OPENSTACK_STDOUT=1 + NOSE_WITH_COVERAGE=1 + NOSE_COVER_BRANCHES=1 + NOSE_COVER_PACKAGE=gluster deps = - https://launchpad.net/gluster-swift/icehouse/1.13.0/+download/swift-1.13.0.tar.gz - --download-cache={homedir}/.pipcache - -r{toxinidir}/tools/test-requires - -r{toxinidir}/tools/requirements.txt + git+https://github.com/openstack/swift.git@icehouse-eol + -r{toxinidir}/requirements.txt + -r{toxinidir}/test-requirements.txt +# Just having testtools package installed fixes some dependency issue +# https://github.com/swiftstack/vagrant-swift-all-in-one/issues/19 +# pip needs a good dependency resolver :/ + testtools + flake8 changedir = {toxinidir}/test/unit -commands = nosetests -v --exe --with-xunit --with-coverage --cover-package gluster --cover-erase --cover-xml --cover-html --cover-branches --with-html-output {posargs} +commands = nosetests -v {posargs} + +[testenv:cover] +setenv = VIRTUAL_ENV={envdir} + NOSE_WITH_COVERAGE=1 + NOSE_COVER_BRANCHES=1 + NOSE_COVER_HTML=1 + NOSE_COVER_HTML_DIR={toxinidir}/cover [tox:jenkins] downloadcache = ~/cache/pip [testenv:functest] changedir = {toxinidir} -commands = bash tools/functional_tests.sh - bash tools/gswauth_functional_tests.sh +commands = bash ./.functests [testenv:ksfunctest] changedir = {toxinidir} commands = bash tools/keystone_functional_tests.sh -[testenv:swfunctest] -changedir = {toxinidir} -commands = bash tools/swkrbath_functional_tests.sh - [testenv:pep8] -deps = - --download-cache={homedir}/.pipcache - -r{toxinidir}/tools/test-requires changedir = {toxinidir} commands = - flake8 - flake8 gluster test - -[testenv:cover] -setenv = NOSE_WITH_COVERAGE=1 + flake8 gluster test setup.py [testenv:venv] -commands = changedir = {toxinidir} +commands = {posargs} [testenv:run] changedir = {toxinidir} |