XCTest not registering new methods as tests XCTest not registering new methods as tests xcode xcode

XCTest not registering new methods as tests


Only method names that start with test are being recognized as tests. That way you can still use normal methods in your test classes that your actual test methods can call.


Restart Xcode

New methods starting with test... were not being tested in my Test target.

- (void)testMethod {    // not tested}

Solution was to restart Xcode.


Your new method must begin with "test", after add it , cmd + B, you will find your new method on your test navigator.