Commits

Mikhail Korobov committed 48b77a5

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

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)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.