- outdir = settings.COVERAGE_REPORT_HTML_OUTPUT_DIR
+ if settings.COVERAGE_USE_STDOUT:
message = "The following packages or modules were excluded:"
+ outdir = settings.COVERAGE_REPORT_HTML_OUTPUT_DIR
outdir = os.path.abspath(outdir)
html_report(outdir, modules, excludes, errors)
# True => html reports by 55minutes
# False => html reports by coverage.py
COVERAGE_CUSTOM_REPORTS = getattr(settings, 'COVERAGE_CUSTOM_REPORTS', True)
+# True => Always output coverage reports to STDOUT.
+# False => Don't output coverage reports to STDOUT.
+# This makes it possible to both generate HTML reports and see coverage
+# information on STDOUT.
+COVERAGE_USE_STDOUT = getattr(settings, 'COVERAGE_USE_STDOUT', True)