To get started, we are going to create a blank iOS project. You will want to have the include unit tests checkbox checked.
- Go to File > New > Target.
- Select Unit Testing Bundle.
- Click Next.
Now that you have the unit test target in your project, you can run the tests from the menu bar with Product > Test or just use the keyboard shortcut:โU
When the tests finish, you should see green checkmarks in the Test Navigator in the left pane (โ6) indicating that the tests passed.