让XCode在运行测试之前启动Web服务器

时间:2014-12-19 19:58:22

标签: ios testing xcode6

我有一个iphone应用程序,它使用rails后端来从中获取数据。对于启动rails服务器的测试,是否可以使用before start钩子?

1 个答案:

答案 0 :(得分:0)

为什么不在Test命令中使用pre-action?你需要点击那个+并添加新的运行脚本动作。

enter image description here

唯一的缺点是,如果您无法开始测试,则无法中止测试。您可以在此处查看有关此问题的主题:Is it normal for Xcode not to detect if a pre-action failed?

相关问题