Use openstack.nose_plugin for tests

With this change, we get similar nosetest output as other OpenStack projects do.

Change-Id: I0f6692e4cfef04c4fdea8a7a65ad6b73468f7c44
This commit is contained in:
MORITA Kazutaka 2014-04-18 15:21:25 +09:00
parent 861272a884
commit ee9f9aad99
3 changed files with 17 additions and 2 deletions

View File

@ -30,3 +30,11 @@ packages =
[entry_points]
paste.filter_factory =
swift3 = swift3.middleware:filter_factory
[nosetests]
exe = 1
verbosity = 2
detailed-errors = 1
cover-package = swift3
cover-html = true
cover-erase = true

View File

@ -1,4 +1,5 @@
hacking
sphinx
nose
openstack.nose_plugin
coverage

10
tox.ini
View File

@ -11,6 +11,14 @@ deps =
-r{toxinidir}/test-requirements.txt
commands = nosetests {posargs:swift3/test/unit}
setenv = VIRTUAL_ENV={envdir}
NOSE_WITH_OPENSTACK=1
NOSE_OPENSTACK_COLOR=1
NOSE_OPENSTACK_RED=0.05
NOSE_OPENSTACK_YELLOW=0.025
NOSE_OPENSTACK_SHOW_ELAPSED=1
NOSE_OPENSTACK_STDOUT=1
NOSE_WITH_COVERAGE=1
NOSE_COVER_BRANCHES=1
[testenv:pep8]
commands = flake8
@ -22,10 +30,8 @@ commands = {posargs}
setenv = VIRTUAL_ENV={envdir}
NOSE_WITH_COVERAGE=1
NOSE_COVER_BRANCHES=1
NOSE_COVER_PACKAGE=swift3
NOSE_COVER_HTML=1
NOSE_COVER_HTML_DIR={toxinidir}/cover
NOSE_COVER_ERASE=1
[tox:jenkins]
downloadcache = ~/cache/pip