如何订购kiftesting序列?

我使用了最新版本的KIF框架,并创build了几个testing用例(KIFTestCase的子类)。

我可否知道有什么方法可以改变testing序列的顺序吗?

例如我有testA.m testB.m testC.m …如何使testB.m testC.m testA.m这样的序列在我点击一个cmd + U进行testing?

它按字母顺序排列,例如:

- (void)testB {} will be the second test - (void)testA {} will be the first test - (void)testC {} will be the third test 

就我所知,目前在KIF中是不可能的。

从技术上讲,这是字母数字而不是字母顺序,这指出了一个有用的解决方法。 解决方法是使用字母前缀来testing名​​称,通过对A,B,C计数增加一个逻辑上的分组名称。这消除了字母系统的大多数缺点,因为您可以分离出需要的testing组并且可以重新排列这些testing,或者在每个系列中添加额外的testing,而无需重新命名KIFtesting课程中的每个testing。

 - (void)testA1_RelatedTest1 - (void)testA2_RelatedTest1 - (void)testA3_RelatedTest3 - (void)testB1_OtherAreaOfTesting1 - (void)testB2_OtherAreaOfTesting2 - (void)testC1_FinalTestCategory1 - (void)testC2_FinalTestCategory2 - (void)testC3_FinalTestCategory3