]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
Use testr for running gate tests
authorClint Byrum <clint@fewbar.com>
Thu, 25 Apr 2013 03:07:37 +0000 (20:07 -0700)
committerClint Byrum <clint@fewbar.com>
Tue, 30 Apr 2013 20:51:31 +0000 (13:51 -0700)
Fixes bug 1172468

Change-Id: Ifd87e44d752b4b3c77b4ea8f38feceb03bccaebe

.gitignore
tools/test-requires
tools/test-requires-rpm
tox.ini

index 715c9605f09a04336caebe344083e0e222016a53..cd390541ee534dbb217bc3c96ae437407f543b18 100644 (file)
@@ -11,3 +11,6 @@ AUTHORS
 ChangeLog
 templates/cloudformation-examples
 .tox
+.coverage
+cover
+.testrepository
index 1d1eb0c4b19a411d5700069c13c876764b860e85..0cbb4a1e1812d2def0d3d0106c46dbb90dd4f717 100644 (file)
@@ -3,8 +3,8 @@ distribute>=0.6.24
 
 coverage
 mox==0.5.3
+testrepository>=0.0.13
 nose
-nosexcover
 openstack.nose_plugin>=0.7
 paramiko
 pep8==1.3.4
index 9bf50802feb3d6e0c3556002ec94708e16956912..3874d1f79f6a264f5f081923b2d51932c6114d6a 100644 (file)
@@ -3,8 +3,8 @@ python-setuptools
 
 python-coverage
 python-mox
+python-testrepository
 python-nose
-#nosexcover
 #openstack.nose_plugin>=0.7
 python-pep8
 python-sphinx
diff --git a/tox.ini b/tox.ini
index d877253a0cc0f6648bef63c3c25b0b629aa1fe7e..105c6a5818602ae4ac6ba7f47a426560a2016231 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -5,7 +5,8 @@ envlist = py26,py27,pep8
 setenv = VIRTUAL_ENV={envdir}
 deps = -r{toxinidir}/tools/pip-requires
        -r{toxinidir}/tools/test-requires
-commands = nosetests -a tag='unit'
+commands =
+  python setup.py testr --slowest --testr-args='{posargs}'
 
 [testenv:pep8]
 commands = bash tools/run_pep8.sh
@@ -14,7 +15,9 @@ commands = bash tools/run_pep8.sh
 commands = {posargs}
 
 [testenv:cover]
-commands = nosetests --cover-erase --cover-package=heat --with-xcoverage -a tag='unit'
+setenv = VIRTUAL_ENV={envdir}
+commands =
+  python setup.py testr --coverage
 
 [tox:jenkins]
 downloadcache = ~/cache/pip