示例#1
0
def run_unit_tests():
    from unittest import TextTestRunner

    from tests.unittest import load_tests

    result = TextTestRunner(verbosity=2).run(load_tests())
    if not result.wasSuccessful():
        raise RuntimeError("Unittest failed.")
示例#2
0
文件: test.py 项目: ricequant/rqalpha
def run_unit_tests():
    from unittest import TextTestRunner

    from tests.unittest import load_tests

    result = TextTestRunner(verbosity=2).run(load_tests())
    if not result.wasSuccessful():
        raise RuntimeError("Unittest failed.")
示例#3
0
文件: test.py 项目: zz111111/rqalpha
def run_unit_tests():
    from unittest import TextTestRunner

    from tests.unittest import load_tests

    TextTestRunner(verbosity=2).run(load_tests())