Running individual XCTest (UI, Unit) test cases for iOS apps from the command line

后端 未结 5 1641
后悔当初
后悔当初 2020-12-02 20:44

Is it possible to run individual test cases, or individual test suites, from an iOS app test target, instead of all the test cases, from a command line interface?

Yo

5条回答
  •  死守一世寂寞
    2020-12-02 21:06

    You can edit the scheme to run only specific tests. Select the scheme, then edit scheme. In the appearing window, select the Test phase and disable/enable individual tests.

    You can also add schemes to run subsets of tests. When running the tests from command line you can specify the scheme to use for the test (at least in fastlane).

提交回复
热议问题