diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2012-11-09 21:34:42 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2012-11-09 21:34:42 -0500 |
commit | 55cf19a0a29042cabbaf53644ee13d037ce88afb (patch) | |
tree | ffb488ccb3b988349d9eb4b81e045a5632a5332c /coverage/control.py | |
parent | 429868d515cc4ea74d625715512c57d3b5b93e73 (diff) | |
download | python-coveragepy-git-55cf19a0a29042cabbaf53644ee13d037ce88afb.tar.gz |
Now the title of the HTML report can be set.
Diffstat (limited to 'coverage/control.py')
-rw-r--r-- | coverage/control.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/coverage/control.py b/coverage/control.py index 726d3f37..bda19a9b 100644 --- a/coverage/control.py +++ b/coverage/control.py @@ -561,7 +561,7 @@ class coverage(object): reporter.report(morfs, directory=directory) def html_report(self, morfs=None, directory=None, ignore_errors=None, - omit=None, include=None, extra_css=None): + omit=None, include=None, extra_css=None, title=None): """Generate an HTML report. The HTML is written to `directory`. The file "index.html" is the @@ -571,6 +571,9 @@ class coverage(object): `extra_css` is a path to a file of other CSS to apply on the page. It will be copied into the HTML directory. + `title` is a text string (not HTML) to use as the title of the HTML + report. + See `coverage.report()` for other arguments. Returns a float, the total percentage covered. @@ -578,7 +581,7 @@ class coverage(object): """ self.config.from_args( ignore_errors=ignore_errors, omit=omit, include=include, - html_dir=directory, extra_css=extra_css, + html_dir=directory, extra_css=extra_css, html_title=title, ) reporter = HtmlReporter(self, self.config) return reporter.report(morfs) |