Che
Che

Reputation: 505

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

How does xcode determines that method is uiTest? Look at the pic:

Similar methods works different: only one of them is defined as uitest

Upvotes: 1

Views: 63

Answers (1)

Joe Masilotti
Joe Masilotti

Reputation: 17018

Xcode has two criteria for determining if something is a test.

  1. The class must inherit from XCTestCase
  2. The method must start with test

Note that the class does not need to inherit directly from XCTestCase, but could be a grandchild. Also note that test is case sensitive.

Upvotes: 1

Related Questions