【发布时间】:2018-08-07 06:02:59
【问题描述】:
我想使用 marathontesting 工具通过命令行或批处理模式运行多个 testSuit 或 testCases。
【问题讨论】:
标签: testing jruby gui-testing marathontesting
我想使用 marathontesting 工具通过命令行或批处理模式运行多个 testSuit 或 testCases。
【问题讨论】:
标签: testing jruby gui-testing marathontesting
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。虽然用户指南适用于马拉松运动员,但也适用于马拉松。
【讨论】: