黄瓜中功能的并行执行

时间:2019-07-02 14:52:42

标签: ios xcode10 xcuitest cucumberish

我正在研究Cucumberish,以便以“先给定”格式(Cucumberish解析的功能文件)编写测试。我以https://github.com/depoon/WeatherCucumber为例。之后,我设法为我的应用程序运行单个功能,而现在我想要实现的是并行执行测试。如果我不使用Cucumberish,那么在Xcode 10中并行执行对我有用-创建几个扩展XCTestCase的类,并在方案中选择“在模拟器上并行执行”选项,运行测试(就像此处演示的{{3 }})。但是,是否可以并行运行要素文件?据我了解,黄瓜设置最终归结为

let bundle = Bundle(for: Runner.self)
Cucumberish.executeFeatures(inDirectory: "Features", from: bundle, includeTags: nil, excludeTags: nil)

我不确定如何将其拆分为测试类以满足并行运行(https://developer.apple.com/videos/play/wwdc2018/403/)的xcode要求?

我尝试创建两个子类,每个子类将执行特定功能(Cucumberish.executeFeatures),但是我的功能不能并行执行。测试仍按顺序运行。

使用黄瓜还是可以并行执行的?

0 个答案:

没有答案