在本地運行測試

本指南介紹如何在本機上執行 iOS 測試,以便您可以在 Firebase 測試實驗室中執行測試之前對其行為進行品質檢查。

本地運行 XCTest

您可以透過使用 USB 連接裝置在本地運行來驗證測試實驗室是否能夠安裝您的應用程式和測試,如下所示:

xcodebuild test-without-building \
    -xctestrun "Derived Data/Build/Products/YourApp.xctestrun" \
    -destination id=your-phone-id

在本地運行遊戲循環測試