def do_nose(self): t0 = time.time() print "do nose" dp = DataPlugin(self.forkr._data) noseConfig = nose.config.Config(showPlugins=True, #debug =99, ) #noseConfig.testMatchPat = 'Tests|_test' #noseConfig.verbosity = 9999 #sys.exit(0 if nose.run() else 1) testRunner = nose.core.TextTestRunner( #stream=self.config.stream, config=noseConfig, #verbosity=1000, #self.config.verbosity, #config=self.config ) t = TestProgram( testRunner=testRunner, #config=noseConfig, plugins=[ dp, ], ) t.runTests() t1 = time.time() total_n = t1 - t0 print("took total", total_n)
from nose.core import TestProgram t = TestProgram(['blackhole.test']) t.runTests()