Пример #1
0
    def runSingle(self, key):
	t = tests.testSuite("pi5", self.address)
	for result in t.runSingleTest(key):
		self.passed.append(result)
	print self.passed
Пример #2
0
#!/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()
Пример #3
0
    def runAll(self,barcode):
        '''Run all tests'''
        t = tests.testSuite("pi5", self.address)
	t.runTests(barcode)
Пример #4
0
 def runAll(self):
     '''Run all tests'''
     t = tests.testSuite("pi5", self.address)
     for result in t.runTests():
         self.passed.append(result)
Пример #5
0
    def runAll(self,inBus,suiteSelection,iters):
        '''Run all tests'''
        t = tests.testSuite(inBus, self.address, self.outCard, iters)
	t.runTests(suiteSelection)
Пример #6
0
 def runSingle(self, key, piAddress):
     t = tests.testSuite(piAddress, self.address)
     for result in t.runSingleTest(key):
         self.passed.append(result)
     print self.passed
Пример #7
0
 def runAll(self, inBus, suiteSelection, iters):
     '''Run all tests'''
     t = tests.testSuite(inBus, self.address, self.outCard, iters)
     t.runTests(suiteSelection)