예제 #1
0
def test_suite():
    suite = TestSuite()
    current_dir = path.abspath(path.dirname(__file__))
    robot_dir = path.join(current_dir, "robot")
    robot_tests = [
        path.join("robot", doc) for doc in listdir(robot_dir) if doc.startswith("test") and doc.endswith(".robot")
    ]
    for test in robot_tests:
        suite.addTests([layered(RobotTestSuite(test), layer=base.ROBOT_TESTING)])
    suite.level = 3
    return suite
예제 #2
0
def test_suite():
    suite = TestSuite()
    current_dir = path.abspath(path.dirname(__file__))
    robot_dir = path.join(current_dir, 'robot')
    robot_tests = [
        path.join('robot', doc)
        for doc in listdir(robot_dir)
        if doc.startswith('test') and doc.endswith('.robot')
    ]
    for test in robot_tests:
        suite.addTests([
            layered(
                RobotTestSuite(test),
                layer=base.ROBOT_TESTING
            ),
        ])
    suite.level = 3
    return suite