xcode7 ui testing: xcode 如何确定方法是 Test

xcode7 ui testing: how does xcode determines that method is Test

xcode如何判断方法是uiTest? 看图:

Xcode 有两个判断某事是否为测试的标准。

  1. class必须继承自XCTestCase
  2. 方法必须以test
  3. 开头

请注意,class 不需要从 XCTestCase 直接 继承,但可以是孙子。另请注意 test 区分大小写。