You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To get started, we are going to create a blank iOS project. You will want to have the include unit tests checkbox checked.
5
+
6
+
![Image 1] (https://ibb.co/Mhd6bbD)
7
+
8
+
##### If already have project, and want to add unit test
9
+
10
+
1. Go to File > New > Target.
11
+
2. Select Unit Testing Bundle.
12
+
3. Click Next.
13
+
14
+
![Image 2] (https://ibb.co/WgpM4Q3)
15
+
16
+
### Running Unit Test in XCode
17
+
18
+
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.
19
+
20
+
When the tests finish, you should see green checkmarks in the Test Navigatorin the left pane (⌘6) indicating that the tests passed.
0 commit comments