def getTestSuite(): """ set up composite test suite """ test_suite = unittest.TestSuite([]) test_suite.addTests(unittest.TestLoader().loadTestsFromTestCase( TestSingleSnpScale)) #Tests Ludicrous Speed GWAS return test_suite if __name__ == '__main__': #logging.basicConfig(level=logging.INFO) logging.getLogger().setLevel(logging.WARN) suites = getTestSuite() if True: r = unittest.TextTestRunner(failfast=False) ret = r.run(suites) assert ret.wasSuccessful() else: #runner test run logging.basicConfig(level=logging.INFO) from pysnptools.util.mapreduce1.distributabletest import DistributableTest runner = LocalMultiProc(taskcount=22, mkl_num_threads=5, just_one_process=False) distributable_test = DistributableTest(suites, "temp_test") print(runner.run(distributable_test)) logging.info("done")
def getTestSuite(): """ set up composite test suite """ test_suite = unittest.TestSuite([]) test_suite.addTests(unittest.TestLoader().loadTestsFromTestCase( TestSingleSnpScale)) #Tests Ludicrous Speed GWAS return test_suite if __name__ == '__main__': #from fastlmm.ludicrous.test import getTestSuite, TestOneMil logging.basicConfig(level=logging.INFO) suites = getTestSuite() if True: r = unittest.TextTestRunner(failfast=True) r.run(suites) else: #runner test run logging.basicConfig(level=logging.INFO) from pysnptools.util.mapreduce1.distributabletest import DistributableTest runner = LocalMultiProc(taskcount=22, mkl_num_threads=5, just_one_process=False) distributable_test = DistributableTest(suites, "temp_test") print runner.run(distributable_test) logging.info("done")