Asynchronous Unit Testing in Swift
Chris Adamson: Fortunately, this is where Xcode 6′s asynchronous testing comes in. It allows us to create XCTestExpectation objects, which are not tests but timers. We create expectations with XCTestCase’s expectationWithDescription(), which just takes a string to describe what we’re waiting for. Then, prior to the end of the test… method, we call waitForExpectationsWithTimeout(), passing … Continue reading Asynchronous Unit Testing in Swift
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed