def runSingle(self, key): t = tests.testSuite("pi5", self.address) for result in t.runSingleTest(key): self.passed.append(result) print self.passed
#!/bin/python import unittest import sys import advcubit # import test suits import tests print('Running advcubit test suite:') try: advcubit.init(silentMode=False) except EnvironmentError as e: print('Error initializing advcubit. $PYTHON_PATH must be set!\n' + str(e)) sys.exit(1) # run tests testSuite = tests.testSuite() try: unittest.main(defaultTest='testSuite') finally: # clean journal files advcubit.deleteJournalFiles()
def runAll(self,barcode): '''Run all tests''' t = tests.testSuite("pi5", self.address) t.runTests(barcode)
def runAll(self): '''Run all tests''' t = tests.testSuite("pi5", self.address) for result in t.runTests(): self.passed.append(result)
def runAll(self,inBus,suiteSelection,iters): '''Run all tests''' t = tests.testSuite(inBus, self.address, self.outCard, iters) t.runTests(suiteSelection)
def runSingle(self, key, piAddress): t = tests.testSuite(piAddress, self.address) for result in t.runSingleTest(key): self.passed.append(result) print self.passed
def runAll(self, inBus, suiteSelection, iters): '''Run all tests''' t = tests.testSuite(inBus, self.address, self.outCard, iters) t.runTests(suiteSelection)