xcode6 命令行运行单元测试unit test
2015-08-14 14:49
302 查看
网上很多信息说xcode4.5版本以后不支持命令行运行unit test。其实这种说法有误。
官方文档:
应用xcodebuild test 命令行运行测试用例
https://developer.apple.com/library/prerelease/ios/documentation/DeveloperTools/Conceptual/testing_with_xcode/A3-command_line_testing.html
根据自己的实际schema配置情况,灵活调整 destination 参数。
如官网示例:
xcodebuild test -project MyAppProject.xcodeproj -scheme MyApp -destination 'platform=OS X,arch=x86_64'
而在我的配置环境下
xcodebuild test -scheme aptTests -destination 'platform=iOS Simulator,name=iPhone 6,OS=8.1'
-project在project当前目录下,且只有一个project文件,是可选参数,可以不写
官方文档:
应用xcodebuild test 命令行运行测试用例
https://developer.apple.com/library/prerelease/ios/documentation/DeveloperTools/Conceptual/testing_with_xcode/A3-command_line_testing.html
根据自己的实际schema配置情况,灵活调整 destination 参数。
如官网示例:
xcodebuild test -project MyAppProject.xcodeproj -scheme MyApp -destination 'platform=OS X,arch=x86_64'
而在我的配置环境下
xcodebuild test -scheme aptTests -destination 'platform=iOS Simulator,name=iPhone 6,OS=8.1'
-project在project当前目录下,且只有一个project文件,是可选参数,可以不写
相关文章推荐
- 自己动手写搜索引擎
- arcgis for android 学习 - (5) 在地图指定位置添加“标记“,并尝试选中它
- arcgis for android 学习 - (6) 属性查询。检索图层上某个要素,并高亮显示它。
- arcgis for android 学习 - (7) 在真机上 模拟GPS
- android开发(13) 尝试在流布局中移动控件
- android开发(14) 可以横向滚动的ListView(固定列头)
- android开发(15) 调用摄像头拍照,保存在照片到数据库。
- dede首页调用栏目内容{dedefield.content}的方法
- LeetCode:Invert Binary Tree
- UITextField用法大全
- Java按值传递和按引用传递
- android LayoutInflater
- iOS应用程序生命周期(前后台切换,应用的各种状态)详解
- Swift String 一些常用方法
- LPC2148微处理器介绍
- How to add local jar into your local maven repository
- 在Tomcat部署Solr 4.3
- MFC对话框 菜单项 禁用与启用
- C#中Math.Round()实现中国式四舍五入
- jQuery进阶一 函数手册