Switch to testr

Change-Id: I6ca365e0b0d2ec86e0b61ce4c58b967260d480a7
This commit is contained in:
Paul Kehrer 2014-01-27 18:19:53 -06:00
parent e15ba877b0
commit 70878d48f1
5 changed files with 13 additions and 17 deletions

View File

@ -1,4 +1,5 @@
[run]
branch = True
omit = etc/*,setup.py,*egg*,.tox/*,barbican/tests/*,*barbican/openstack/*
[report]

5
.testr.conf Normal file
View File

@ -0,0 +1,5 @@
[DEFAULT]
test_command=${PYTHON:-python} -m subunit.run discover -t . $LISTOPT $IDOPTION
test_id_option=--load-list $IDFILE
test_list_option=--list

View File

@ -33,7 +33,7 @@ barbican.test.crypto.plugin =
test_crypto = barbican.tests.crypto.test_plugin:TestCryptoPlugin
[build_sphinx]
all_files = 1
all_files = 1
build-dir = doc/build
source-dir = doc/source
@ -57,21 +57,9 @@ tag_svn_revision = 0
#mapping_file = babel.cfg
#output_file = barbican/locale/barbican.pot
[nosetests]
where=barbican
nocapture=1
cover-erase=1
#-with-xunit=1
#-all-modules=1
#-traverse-namespace=1
#with-coverage=1
cover-package=barbican
#cover-inclusive=1
cover-branches=1
# TBD: OpenStack stuff...
# NOTE(jkoelker) To run the test suite under nose install the following
# coverage http://pypi.python.org/pypi/coverage
# coverage http://pypi.python.org/pypi/coverage
# tissue http://pypi.python.org/pypi/tissue (pep8 checker)
# openstack-nose https://github.com/jkoelker/openstack-nose
#verbosity=2

View File

@ -1,4 +1,4 @@
coverage>=3.6
hacking>=0.8.0,<0.9
mock>=1.0
nose
nosexcover
testrepository>=0.0.17

View File

@ -10,7 +10,9 @@ deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
[testenv:py27]
commands = nosetests {posargs:--with-xcoverage --all-modules --traverse-namespace --with-xunit --cover-package=barbican}
commands = python setup.py testr --coverage
coverage combine
coverage report -m
[testenv:coverage]
commands = coverage html {posargs:--include="*barbican*"}