# 将用例组装数组
alltestnames = [
baidu.Baidu,
youdao.Youdao,
]
# 创建测试套件
testunit = unittest.TestSuite()
# 循环读取数组中的用例
for test in alltestnames:
testunit.addTest(unittest.makeSuite(test))
# 将用例组装数组
alltestnames = [
baidu.Baidu,
youdao.Youdao,
]
# 创建测试套件
testunit = unittest.TestSuite()
# 循环读取数组中的用例
for test in alltestnames:
testunit.addTest(unittest.makeSuite(test))