我想使用马拉松测试工具通过命令行或批处理模式运行多个测试套件或测试用例。

最佳答案

Marathon / Marathonite可以在命令行上接受一系列测试。假设您具有如下测试结构(在TestCases文件夹下):

test_1
test_2
folder_1
folder_1/test_1
folder_1/test_2


您可以按照以下方式进行马拉松比赛:

marathon -batch <project-folder> # Runs all tests
marathon -batch <project-folder> test_1 # Runs only test_1
marathon -batch <project-folder> test_1 test_2 # Runs test_1 and test_2
marathon -batch <project-folder> folder_1.test_1 # Runs only folder_1/test_1
marathon -batch <project-folder> folder_1.AllTests # Runs all tests from folder_1


有关更多详细信息,请参见http://marathontesting.com/documentation/?section=executing-tests-in-batch-mode。尽管用户指南适用于马拉松运动员,但也适用于马拉松运动员。

09-12 06:44