Added test group separators to the html version of performance report.

This commit is contained in:
Andrey Kamaev
2012-01-09 07:45:19 +00:00
parent 7bf091cd98
commit cdac77c2b2
2 changed files with 22 additions and 6 deletions

View File

@@ -124,14 +124,24 @@ if __name__ == "__main__":
i += 1
# rows
prevGroupName = None
needNewRow = True
lastRow = None
for name in sorted(test_cases.iterkeys(), key=alphanum_keyselector):
cases = test_cases[name]
if needNewRow:
tbl.newRow()
lastRow = tbl.newRow()
if not options.showall:
needNewRow = False
tbl.newCell("name", name)
groupName = next(c for c in cases if c).shortName()
if groupName != prevGroupName:
prop = lastRow.props.get("cssclass", "")
if "firstingroup" not in prop:
lastRow.props["cssclass"] = prop + " firstingroup"
prevGroupName = groupName
for i in range(setsCount):
case = cases[i]
if case is None: