asynchronous Asynchronous unit testing Core Data with Xcode 6 The WordPress for iOS project had a number of unit tests using Core Data and a custom asynchronous test helper. The helper used a semaphore in a global scope and a bit of method swizzling to give a wait/notify mechanism. The problem with this solution was the global semaphore
tips If you run Unit Tests in Xcode If you run unit tests inside of Xcode, you may wish to turn on the behavior to show the test results after they run. 1. Go to Preferences in Xcode. 2. Click on the Behaviors tab. 3. Click on Succeeds. 4. Check the box shown and select "Show"