Skip to content
Snippets Groups Projects
Commit fc96f627 authored by Peter Scheibel's avatar Peter Scheibel
Browse files

Updated documentation/naming in tally_plugin to reflect that the count of the

total number of tests run excludes skipped tests
parent d50a18d9
Branches
Tags
No related merge requests found
...@@ -104,7 +104,7 @@ def run(names, outputDir, verbose=False): ...@@ -104,7 +104,7 @@ def run(names, outputDir, verbose=False):
succeeded = not tally.failCount and not tally.errorCount succeeded = not tally.failCount and not tally.errorCount
tty.msg("Tests Complete.", tty.msg("Tests Complete.",
"%5d tests run" % tally.numberOfTests, "%5d tests run" % tally.numberOfTestsRun,
"%5d failures" % tally.failCount, "%5d failures" % tally.failCount,
"%5d errors" % tally.errorCount) "%5d errors" % tally.errorCount)
......
...@@ -35,9 +35,9 @@ def __init__(self): ...@@ -35,9 +35,9 @@ def __init__(self):
self.failCount = 0 self.failCount = 0
self.errorCount = 0 self.errorCount = 0
# TODO: this doesn't account for the possibility of skipped tests
@property @property
def numberOfTests(self): def numberOfTestsRun(self):
"""Excludes skipped tests"""
return self.errorCount + self.failCount + self.successCount return self.errorCount + self.failCount + self.successCount
def options(self, parser, env=os.environ): def options(self, parser, env=os.environ):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment