Unit Testing on macOS: Part 2/2

In the second part of our Unit testing tutorial for macOS you’ll learn about UI tests and code coverage and you learn how to test asynchronous code. By Sarah Reichelt.

Leave a rating/review
Save for later
Share
You are currently viewing page 4 of 4 of this article. Click here to view the first page.

Where to Go From Here?

You can download the final version of the sample project here.

Apple has a set of docs about Testing with Xcode with links to relevant WWDC videos.

NSHipster has a useful summary of the various assertions and what you really need to know to write tests.

For information about Test Driven Development, check out Uncle Bob's excellent site.

Interested in learning more about UITests? Check out the Joe Masilotti's excellent cheat sheet.

I hope you enjoyed this Unit testing tutorial; if you have any questions or comments, please join the forum discussion below!