简体   繁体   English

如何从命令行在多个模拟器上启动XCUITests

[英]How to launch XCUITests on more than one simulator from command line

Does any one know how to launch XCUItest bundles from command line on more than one simulator? 是否有人知道如何在多个模拟器上从命令行启动XCUItest软件包?

I do not wish to use a third party frame work. 我不希望使用第三方框架。 I just want to know how to do it from command line. 我只想知道如何从命令行执行此操作。 Currently, I only know how to launch them on one simulator. 目前,我只知道如何在一个模拟器上启动它们。 Any help is appreciated. 任何帮助表示赞赏。

xcodebuild test -workspace your_app.xcworkspace -scheme your_app_scheme -destination 'platform=iphonesimulator,name=iPad Air'

Also I recommend to read this article for using Ruby Rake library with Command line http://cuckooforcocoadev.com/blog/2014/05/02/using-rake-for-command-line-builds/ 我也建议阅读这篇文章,以将Ruby Rake库与命令行结合使用http://cuckooforcocoadev.com/blog/2014/05/02/using-rake-for-command-line-builds/

If you use rake you will be able customize log of UI tests results. 如果使用rake,则可以自定义UI测试结果的日志。 According to this article: 根据这篇文章:

xcodebuild -workspace your_app.xcworkspace -scheme '#{target_name}' -sdk iphonesimulator -configuration Release #{build_action} | xcpretty -tc ; exit ${PIPESTATUS[0]}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM