def runTests(self):
# Setup some globals to pass to the TestCase
global SOFT_PKG
global IMPL_ID
SOFT_PKG = self.spd_file
spd = SPDParser.parse(self.spd_file)
if self.testRunner is None:
try:
import xmlrunner
self.testRunner = xmlrunner.XMLTestRunner(verbosity=self.verbosity)
except ImportError:
self.testRunner = unittest.TextTestRunner(verbosity=self.verbosity)
for implementation in spd.get_implementation():
IMPL_ID = implementation.get_id()
if IMPL_ID == self.impl or self.impl is None:
result = self.testRunner.run(self.test)
self.results.append(result)
#sys.exit(not result.wasSuccessful())
评论列表
文章目录