diff --git a/miss_hit_core/mh_metric.py b/miss_hit_core/mh_metric.py index 680be0af..b4b25e02 100644 --- a/miss_hit_core/mh_metric.py +++ b/miss_hit_core/mh_metric.py @@ -567,24 +567,28 @@ def write_text_report(fd, def write_html_report(fd, + entry_point, portable_html, all_metrics, ticket_summary, worst_offenders): base_url = PORTABLE_RES_URL if portable_html else RES_URL + if entry_point: + report_title = "MISS_HIT Report for %s" % entry_point + else: + report_title = "MISS_HIT Report" + fd.write("\n") fd.write("\n") fd.write("\n") fd.write("\n") - # Link style-sheet with a relative path based on where the - # output report file will be fd.write("\n" % base_url) - fd.write("MISS_HIT Report\n") + fd.write("%s\n" % report_title) fd.write("\n") fd.write("\n") - fd.write("
MISS_HIT Report
\n") + fd.write("
%s
\n" % report_title) fd.write("
\n") fd.write("
\n") @@ -1072,6 +1076,7 @@ def post_process(self): elif self.options.html: with open(self.options.html, "w") as fd: write_html_report(fd, + self.options.entry_point, self.options.portable_html, self.metrics, ticket_summary,