Commits

Mikhail Korobov committed 48b77a5

Option to use standart coverage.py html reports instead of custom reports provided by 55minutes.

  • Participants
  • Parent commits b8c5158

Comments (0)

Files changed (2)

django_coverage/coverage_runner.py

             print >>sys.stdout
     else:
         outdir = os.path.abspath(outdir)
-        html_report(outdir, modules, excludes, errors)
+        if settings.COVERAGE_CUSTOM_REPORTS:
+            html_report(outdir, modules, excludes, errors)
+        else:
+            coverage._the_coverage.html_report(modules.values(), outdir)
         print >>sys.stdout
         print >>sys.stdout, "HTML reports were output to '%s'" %outdir
 

django_coverage/settings.py

 COVERAGE_REPORT_HTML_OUTPUT_DIR = getattr(settings,
                                           'COVERAGE_REPORT_HTML_OUTPUT_DIR',
                                           None)
+
+# True => html reports by 55minutes
+# False => html reports by coverage.py
+COVERAGE_CUSTOM_REPORTS = getattr(settings, 'COVERAGE_CUSTOM_REPORTS', True)