Skip to content

Latest commit

 

History

History
58 lines (51 loc) · 1.45 KB

File metadata and controls

58 lines (51 loc) · 1.45 KB

(iOS) UI Testing Bundle

Description

Adds a user interface testing bundle that uses the XCTest framework.

File structure

 .
 ├── MyApp
 │   ├── AppDelegate.swift
 │   ├── Assets.xcassets
 │   │   ├── AppIcon.appiconset
 │   │   │   ├── AppIcon.png
 |   |   |   └── Contents.json
 │   │   └── Contents.json
 │   ├── LaunchScreen.storyboard
 │   └── RootViewController.swift
+├── MyAppUITests
+│   └── SomeUITests.swift
 └── project.yml

project.yml

 name: MyApp
 targets:
   MyApp:
     type: application
     platform: iOS
     deploymentTarget: 12.0
     settings:
       TARGETED_DEVICE_FAMILY: 1
       MARKETING_VERSION: 1.0
       CURRENT_PROJECT_VERSION: 1
       DEVELOPMENT_TEAM: MYTEAMID
       PRODUCT_BUNDLE_IDENTIFIER: com.mycompany.myapp
       GENERATE_INFOPLIST_FILE: YES
       INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents: YES
       INFOPLIST_KEY_UILaunchStoryboardName: LaunchScreen.storyboard
       INFOPLIST_KEY_UISupportedInterfaceOrientations: UIInterfaceOrientationPortrait
     sources:
       - MyApp
+  MyAppUITests:
+    type: bundle.ui-testing
+    platform: iOS
+    settings:
+      DEVELOPMENT_TEAM: MYTEAMID
+      PRODUCT_BUNDLE_IDENTIFIER: com.company.myappuitests
+      GENERATE_INFOPLIST_FILE: YES
+    sources:
+      - MyAppUITests
+    dependencies:
+      - target: MyApp