Perf tests reports - added output format with embedded styles

This commit is contained in:
Andrey Kamaev
2011-09-09 12:15:09 +00:00
parent 5c3a93a5b8
commit 5ab6d5a05a
4 changed files with 40 additions and 18 deletions

View File

@@ -137,8 +137,11 @@ if __name__ == "__main__":
# output table
if options.generateHtml:
htmlPrintHeader(sys.stdout, "Summary report for %s tests from %s test logs" % (len(test_cases), setsCount))
tbl.htmlPrintTable(sys.stdout)
htmlPrintFooter(sys.stdout)
if options.format == "moinwiki":
tbl.htmlPrintTable(sys.stdout, True)
else:
htmlPrintHeader(sys.stdout, "Summary report for %s tests from %s test logs" % (len(test_cases), setsCount))
tbl.htmlPrintTable(sys.stdout)
htmlPrintFooter(sys.stdout)
else:
tbl.consolePrintTable(sys.stdout)