Activation of Tally plugin to count tests. It doesn't appear to be actually

counting the individual unit tests correctly so I need to chase that down.
This commit is contained in:
Peter Scheibel 2015-11-24 10:39:42 -08:00
parent 099fa1df34
commit 70049185a5
2 changed files with 3 additions and 5 deletions

View File

@ -85,13 +85,14 @@ def run(names, verbose=False):
sys.exit(1)
tally = Tally()
tally.enabled = True
for test in names:
module = 'spack.test.' + test
print module
tty.msg("Running test: %s" % test)
result = nose.run(argv=["", module], plugins=[tally])
activateTally = "--with-%s" % spack.test.tally_plugin.Tally.name
result = nose.run(argv=["", activateTally, module], addplugins=[tally])
succeeded = not tally.failCount and not tally.errorCount
tty.msg("Tests Complete.",

View File

@ -57,9 +57,6 @@ def options(self, parser, env=os.environ):
def configure(self, options, conf):
super(Tally, self).configure(options, conf)
def begin(self):
print ">>> TALLY PLUGIN BEGIN"
def addSuccess(self, test):
self.successes.add(test)