Only use xmlrunner if running under hudson

This commit is contained in:
tom christie tom@tomchristie.com 2011-03-30 21:39:38 +01:00
parent 7566de1cae
commit 8845b281fe

View File

@ -106,6 +106,8 @@ INSTALLED_APPS = (
'blogpost',
)
import os
if os.environ.get('HUDSON_URL', None):
TEST_RUNNER = 'xmlrunner.extra.djangotestrunner.XMLTestRunner'
TEST_OUTPUT_VERBOSE = True
TEST_OUTPUT_DESCRIPTIONS = True