如何在每个版本上自动执行单元测试? [英] How do I automatically perform unit tests on each build?

查看:155
本文介绍了如何在每个版本上自动执行单元测试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何自动对每个版本进行单元测试?

How do I automatically perform unit tests on each build?

我尝试将单元测试目标添加到项目目标中作为依赖关系,但不似乎运行实际测试。

I tried to add the Unit Tests target to the Project Target as a dependency, but that doesn't seem to run the actual tests.

推荐答案

将Build Build Build Build设置设置为Yes。选择产品> Build For> Build For Testing构建项目并运行测试。

Set the Test After Build build setting to Yes. Choose Product > Build For > Build For Testing to build the project and run the tests.

Xcode 5更新

Xcode 5不支持Build Build Build Build设置。我不知道有什么办法自动运行Xcode 5中每个版本的测试。从OS X菜单栏选择产品>测试或按Command + u在Xcode 5中运行单元测试。

Xcode 5 does not support the Test After Build build setting. I don't know of any way to automatically run tests on each build in Xcode 5. From the OS X menu bar choose Product > Test or press Command + u to run unit tests in Xcode 5.

这篇关于如何在每个版本上自动执行单元测试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆