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

后端 未结 5 1644
后悔当初
后悔当初 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 20:59

    It is now possible with Xcode 8 using the -only-testing parameter with xcodebuild:

    xcodebuild test -workspace 
                    -scheme 
                    -destination 
                    -only-testing:TestBundle/TestSuite/TestCase
    

    Check this video: https://developer.apple.com/videos/play/wwdc2016/409/

提交回复
热议问题