Only use xmlrunner if running under hudson

This commit is contained in:
tom christie tom@tomchristie.com 2011-03-30 20:33:36 +01:00
parent 3acedec771
commit 7566de1cae

View File

@ -96,7 +96,9 @@ INSTALLED_APPS = (
'djangorestframework',
)
TEST_RUNNER = 'xmlrunner.extra.djangotestrunner.XMLTestRunner'
TEST_OUTPUT_VERBOSE = True
TEST_OUTPUT_DESCRIPTIONS = True
TEST_OUTPUT_DIR = 'xmlrunner'
import os
if os.environ.get('HUDSON_URL', None):
TEST_RUNNER = 'xmlrunner.extra.djangotestrunner.XMLTestRunner'
TEST_OUTPUT_VERBOSE = True
TEST_OUTPUT_DESCRIPTIONS = True
TEST_OUTPUT_DIR = 'xmlrunner'