FOTestKit 0.1.2

FOTestKit 0.1.2

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2014

Maintained by Unclaimed.



FOTestKit 0.1.2

  • By
  • Jim Schultz

Installation

XCTestCase+Stalling Example

__block BOOL someConditionIsMet = NO;

[NetworkingManager someNetworkCallSuccess:(void (^)(NSURLSessionDataTask *task, id responseObject)){
        someConditionisMet = YES;
} failure:(void (^)(NSURLSessionDataTask *task, NSError *error)){
        someConditionisMet = NO;
}];

[self stallRunLoopUntilConditionIsMet:^BOOL{
    return (_someConditionIsMet == YES);
} timeout:20];

XCTAssertTrue(testTheCondition, @"the condition wasn't true");

Author

Jim Schultz, [email protected]

License

FOTestKit is available under the MIT license. See the LICENSE file for more info.