Use testr to run the unit tests.

Run unit tests with:
./setup.py testr
This commit is contained in:
Steve Baker 2013-02-21 10:42:02 +13:00
parent 2e95bda5db
commit fabcdf19c8
2 changed files with 6 additions and 0 deletions

2
.gitignore vendored
View File

@ -3,3 +3,5 @@
build
dist
heat_cfntools.egg-info/
.testrepository/
subunit.log

4
.testr.conf Normal file
View File

@ -0,0 +1,4 @@
[DEFAULT]
test_command=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 OS_TEST_TIMEOUT=60 ${PYTHON:-python} -m subunit.run discover -t ./ ./heat_cfntools/tests $LISTOPT $IDOPTION
test_id_option=--load-list $IDFILE
test_list_option=--list