Skip to content

Using this ios_unit_testing example you can easily learn a basic Unit test in Swift to test a Login Model using XC Test Framework.

Notifications You must be signed in to change notification settings

sparkouttech/ios_unit_testing_sample

Repository files navigation

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.

About

Using this ios_unit_testing example you can easily learn a basic Unit test in Swift to test a Login Model using XC Test Framework.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published