Skip to content

Adopting UITest with Swift(Swift4.2)


Add the UITest to your project.
If you didn't create it when you created the project, you can add it by following the steps in the image below.

Write @testable import Swiswiswift (Swiswiswift is the name of the project) so that you can refer to it in the test class.
By prefixing the function name with “test”, it can be executed as a test.

  1. Display items in a table with UITableView(Swift4.2)
  2. Screen transition in NavigationController(Swift4.2)
  3. Switching the Root of NavigationController(Swift4.2)
  4. Selecting an image with ImagePickerController(Swift4.2)
  5. Function(Swift4.2)
  6. Array(Swift4.2)
  7. Print(Swift4.2)