diff options
-rw-r--r-- | .hgignore | 1 | ||||
-rw-r--r-- | coverage/summary.py | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -15,6 +15,7 @@ syntax: glob # Stuff generated by editors. .idea/ +.vimtags # Stuff in the root. build diff --git a/coverage/summary.py b/coverage/summary.py index 46aa4f5c..59d1b7c4 100644 --- a/coverage/summary.py +++ b/coverage/summary.py @@ -100,6 +100,6 @@ class SummaryReporter(Reporter): if self.config.show_missing: args += ("",) outfile.write(fmt_coverage % args) - if not total.n_files: + if not total.n_files and not self.config.skip_covered: raise CoverageException("No data to report.") return total.n_statements and total.pc_covered |