iOS Testing: Is there a way to skip tests?

You can disable XCTests run by Xcode by right clicking on the test symbol in the editor tray on the left. You’ll get this menu, and you can select the “Disable ” option. Right clicking again will allow you to re-enable. Also, as stated in user @sethf’s answer, you’ll see entries for currently disabled tests … Read more

XCTest and asynchronous testing in Xcode 6

Obj-C example: – (void)testAsyncMethod { //Expectation XCTestExpectation *expectation = [self expectationWithDescription:@”Testing Async Method Works!”]; [MyClass asyncMethodWithCompletionBlock:^(NSError *error, NSHTTPURLResponse *httpResponse, NSData *data) { if(error) { NSLog(@”error is: %@”, error); }else{ NSInteger statusCode = [httpResponse statusCode]; XCTAssertEqual(statusCode, 200); [expectation fulfill]; } }]; [self waitForExpectationsWithTimeout:5.0 handler:^(NSError *error) { if(error) { XCTFail(@”Expectation Failed with error: %@”, error); } }]; … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)