【问题标题】:Compile for ios simulator and run UITest in 2 times为ios模拟器编译并运行UITest 2次
【发布时间】:2016-01-26 09:28:01
【问题描述】:

我尝试为 UITesting 编译我的应用程序,并再次在 iOS 模拟器上运行 UITest。但我需要做 2 次。

我曾经使用过一次:

xcodebuild -workspace './MyApp.xcworkspace' -scheme 'MyScheme' -derivedDataPath '~/Documents/derived_data/' -destination 'platform=iOS Simulator,id=6EE927C0-FC0E-4235-8915-3BFF1F128B76,OS=9.2' build test | xcpretty

知道如何在模拟器中复制和启动 MyApp.app、MyAppUITests-Runner.app 吗?

谢谢。

阿拉克

编辑:

无论如何要推出类似的东西:

xcrun simctl launch "UITest"

并从中获取 xcactivitylog ?

【问题讨论】:

    标签: ios command-line ios-simulator xcodebuild xcode-ui-testing


    【解决方案1】:

    试试这个:

    xcodebuild -workspace App.xcworkspace -scheme "App-Scheme" -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 6,OS=9.1' test
    

    它将编译应用程序并在模拟器中运行 UI 测试。

    【讨论】:

    • 嘿,感谢您的回答,但我正在寻找一种方法来编译和运行 2 次 UI 测试。
    猜你喜欢
    • 2015-02-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-04-03
    • 1970-01-01
    • 2011-10-27
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多