diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2012-11-03 17:38:03 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2012-11-03 17:38:03 -0400 |
commit | 69e0a37098edba20e24fe8fa80e6960c53e2c3c7 (patch) | |
tree | a4930e93c377e3b4641c61619fdd8f71a1b125a1 /coverage/html.py | |
parent | 3f9716518f854fc9396f815b1c3a8feb7c7397d4 (diff) | |
download | python-coveragepy-git-69e0a37098edba20e24fe8fa80e6960c53e2c3c7.tar.gz |
The reporting functions now return a float, the total percentage covered.
Diffstat (limited to 'coverage/html.py')
-rw-r--r-- | coverage/html.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/coverage/html.py b/coverage/html.py index 34bf6a61..65bc25e0 100644 --- a/coverage/html.py +++ b/coverage/html.py @@ -94,6 +94,8 @@ class HtmlReporter(Reporter): self.make_local_static_report_files() + return self.totals.pc_covered + def make_local_static_report_files(self): """Make local instances of static files for HTML report.""" # The files we provide must always be copied. @@ -245,7 +247,7 @@ class HtmlReporter(Reporter): files = self.files arcs = self.arcs - totals = sum([f['nums'] for f in files]) + self.totals = totals = sum([f['nums'] for f in files]) extra_css = self.extra_css self.write_html( |