Commit 4f79da52 authored by Marek Olšák's avatar Marek Olšák

Generate a html summary of skipped tests

Reviewed-by: Brian Paul's avatarBrian Paul <brianp@vmware.com>
parent 52c7f69e
...@@ -97,6 +97,7 @@ results is an array of TestResult instances, one per testrun ...@@ -97,6 +97,7 @@ results is an array of TestResult instances, one per testrun
self.regressions = self.isRegression(statiList) self.regressions = self.isRegression(statiList)
statiList.reverse() statiList.reverse()
self.fixes = self.isRegression(statiList) self.fixes = self.isRegression(statiList)
self.skipped = 'skip' in statiSet
def allTests(self): def allTests(self):
return [self] return [self]
...@@ -120,6 +121,7 @@ results is an array of GroupResult instances, one per testrun ...@@ -120,6 +121,7 @@ results is an array of GroupResult instances, one per testrun
self.problems = False self.problems = False
self.regressions = False self.regressions = False
self.fixes = False self.fixes = False
self.skipped = False
self.children = {} self.children = {}
# Perform some initial annotations # Perform some initial annotations
...@@ -166,6 +168,7 @@ results is an array of GroupResult instances, one per testrun ...@@ -166,6 +168,7 @@ results is an array of GroupResult instances, one per testrun
self.problems = self.problems or self.children[name].problems self.problems = self.problems or self.children[name].problems
self.regressions = self.regressions or self.children[name].regressions self.regressions = self.regressions or self.children[name].regressions
self.fixes = self.fixes or self.children[name].fixes self.fixes = self.fixes or self.children[name].fixes
self.skipped = self.skipped or self.children[name].skipped
def allTests(self): def allTests(self):
"""\ """\
......
...@@ -78,7 +78,8 @@ SummaryPages = { ...@@ -78,7 +78,8 @@ SummaryPages = {
'changes': 'changes.html', 'changes': 'changes.html',
'problems': 'problems.html', 'problems': 'problems.html',
'regressions': 'regressions.html', 'regressions': 'regressions.html',
'fixes': 'fixes.html' 'fixes': 'fixes.html',
'skipped': 'skipped.html'
} }
def buildResultListItem(detail): def buildResultListItem(detail):
...@@ -207,6 +208,8 @@ def buildGroupSummary(indent, groupsummary, showcurrent): ...@@ -207,6 +208,8 @@ def buildGroupSummary(indent, groupsummary, showcurrent):
names = filter(lambda n: groupsummary.children[n].regressions, names) names = filter(lambda n: groupsummary.children[n].regressions, names)
elif showcurrent == 'fixes': elif showcurrent == 'fixes':
names = filter(lambda n: groupsummary.children[n].fixes, names) names = filter(lambda n: groupsummary.children[n].fixes, names)
elif showcurrent == 'skipped':
names = filter(lambda n: groupsummary.children[n].skipped, names)
names.sort() names.sort()
for n in names: for n in names:
...@@ -340,6 +343,7 @@ def main(): ...@@ -340,6 +343,7 @@ def main():
writeSummaryHtml(summary, summaryDir, 'changes') writeSummaryHtml(summary, summaryDir, 'changes')
writeSummaryHtml(summary, summaryDir, 'regressions') writeSummaryHtml(summary, summaryDir, 'regressions')
writeSummaryHtml(summary, summaryDir, 'fixes') writeSummaryHtml(summary, summaryDir, 'fixes')
writeSummaryHtml(summary, summaryDir, 'skipped')
if __name__ == "__main__": if __name__ == "__main__":
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment