April 2020
Beginner
316 pages
8h 20m
English
As opposed to UI Tests, Unit Tests are designed to test specific pieces of logic within your app. For example, you may have a function that calculates a complex algorithm, which would then be used in multiple places within your app.
Writing a Unit Test for this function will give you the confidence of being able to update your logic without having to worry about any breaking changes.
In our existing project, click File | New | Target. Once the menu is open, make sure the iOS tab is selected and search for Test in the search box. Then, highlight Unit Testing Bundle and click Next:

Click Next. Use the defaults that ...
Read now
Unlock full access