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
self.regressions = self.isRegression(statiList)
statiList.reverse()
self.fixes = self.isRegression(statiList)
self.skipped = 'skip' in statiSet
def allTests(self):
return [self]
......@@ -120,6 +121,7 @@ results is an array of GroupResult instances, one per testrun
self.problems = False
self.regressions = False
self.fixes = False
self.skipped = False
self.children = {}
# Perform some initial annotations
......@@ -166,6 +168,7 @@ results is an array of GroupResult instances, one per testrun
self.problems = self.problems or self.children[name].problems
self.regressions = self.regressions or self.children[name].regressions
self.fixes = self.fixes or self.children[name].fixes
self.skipped = self.skipped or self.children[name].skipped
def allTests(self):
"""\
......
......@@ -78,7 +78,8 @@ SummaryPages = {
'changes': 'changes.html',
'problems': 'problems.html',
'regressions': 'regressions.html',
'fixes': 'fixes.html'
'fixes': 'fixes.html',
'skipped': 'skipped.html'
}
def buildResultListItem(detail):
......@@ -207,6 +208,8 @@ def buildGroupSummary(indent, groupsummary, showcurrent):
names = filter(lambda n: groupsummary.children[n].regressions, names)
elif showcurrent == 'fixes':
names = filter(lambda n: groupsummary.children[n].fixes, names)
elif showcurrent == 'skipped':
names = filter(lambda n: groupsummary.children[n].skipped, names)
names.sort()
for n in names:
......@@ -340,6 +343,7 @@ def main():
writeSummaryHtml(summary, summaryDir, 'changes')
writeSummaryHtml(summary, summaryDir, 'regressions')
writeSummaryHtml(summary, summaryDir, 'fixes')
writeSummaryHtml(summary, summaryDir, 'skipped')
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