Ordering unit test using XCTest in Xcode 6

后端 未结 7 1469
眼角桃花
眼角桃花 2020-12-24 12:37

I would like to know if there is any way to tell Xcode to run unit tests in a specified order. I mean not in a same XCTestCase class file, but between all the class file.

7条回答
  •  别那么骄傲
    2020-12-24 13:25

    For you exemple you can just rename the tests files on your project like this :

    SitchozrSDKSessionTest -> t001_SitchozrSDKSessionTest
    SitchozrSDKMessageTest -> t002_SitchozrSDKMessageTest
    

    Xcode treat the files using alphabetic order.

提交回复
热议问题