From the course: Xcode 15 Essential Training

Unlock this course with a free trial

Join today to access over 24,000 courses taught by industry experts.

Creating unit tests

Creating unit tests

- [Instructor] One important part of software development is unit testing, which allows you to confirm that your code does what you think it does. Let's take a look at creating unit tests in an Xcode project. To do that, the first step is to select your project in the project navigator. When you do that you'll see your project settings so you'll see info. You could also click on build settings or package dependencies to see more information about your project. What we're interested in here is targets. Under there you'll see debugging, and this has a whole bunch of information about your deployment of your application. To create a unit testing bundle, click the plus button in this section. In here, if you watch, you can scroll down and look for a unit testing bundle, or you can just type unit and filter for it. With unit testing bundle selected under test, I'll hit next. I'll leave the default name and then hit finish. What that does is it creates a group with the same name as your…

Contents