Skip to content

Latest commit

 

History

History
22 lines (12 loc) · 899 Bytes

README.md

File metadata and controls

22 lines (12 loc) · 899 Bytes

Unit Testing in Xcode

To get started, we are going to create a blank iOS project. You will want to have the include unit tests checkbox checked.

If already have project, and want to add unit test
  1. Go to File > New > Target.
  2. Select Unit Testing Bundle.
  3. Click Next.

Running Unit Test in XCode

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.