Commits

Matthew Schinckel  committed a2b54a1

Allow turning off COVERAGE testing using env var.
django-coverage chokes with python3.

  • Participants
  • Parent commits 2d68fcc

Comments (0)

Files changed (2)

     global_settings.STATIC_ROOT = global_settings.MEDIA_ROOT
     
     global_settings.SECRET_KEY = '334ebe58-a77d-4321-9d01-a7d2cb8d3eea'
-    global_settings.TEST_RUNNER = 'django_coverage.coverage_runner.CoverageRunner'
-    global_settings.COVERAGE_REPORT_HTML_OUTPUT_DIR = os.path.join(BASE_PATH, '.coverage')
+    if os.environ.get('COVERAGE', None):
+        global_settings.TEST_RUNNER = 'django_coverage.coverage_runner.CoverageRunner'
+    global_settings.COVERAGE_REPORT_HTML_OUTPUT_DIR =os.path.join(BASE_PATH, '.coverage')
     global_settings.COVERAGE_USE_STDOUT = True
     
     from django.test.utils import get_runner
 commands= python setup.py test
 deps=django
   {[base]deps}
+setenv=
+  COVERAGE=true
 
 [testenv:py27-django-1.4]
 deps= django>=1.4,<1.5
 [testenv:py27-django-trunk]
 deps= git+git://github.com/django/django.git
   {[base]deps}
+
+[testenv:py32]
+setenv=
+  COVERAGE=