diff options
Diffstat (limited to 'coverage/summary.py')
-rw-r--r-- | coverage/summary.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/coverage/summary.py b/coverage/summary.py index aed8335..20123ea 100644 --- a/coverage/summary.py +++ b/coverage/summary.py @@ -98,5 +98,6 @@ class SummaryReporter(Reporter): if self.config.show_missing: args += ("",) outfile.write(fmt_coverage % args) - + if not total.n_files: + raise CoverageException("No data to report.") return total.n_statements and total.pc_covered |