Skip to content

Files

51 lines (36 loc) · 1.73 KB

README.md

File metadata and controls

51 lines (36 loc) · 1.73 KB

Running the Functional Tests

Ensure that the EarlGrey Xcode Project has been built as per the Setup Guide. Specifically, make sure the deps have been correctly added to the repository:

git clone -b earlgrey2 https://github.com/google/EarlGrey.git

sh Scripts/download_deps.sh

Once the EarlGrey targets are building, you should be able to open the Functional Tests Project and then Test the following targets:

The Project contains three main test schemes:

  1. FunctionalTestRig

    Related Targets:

    • Functional Tests: The XCUITest target which contains the canonical EarlGrey test sources (to be run in the test process).
    • FunctionalTestRig: The Application under test with all its resources (to be run in the app process).
    • HostDOCategories: Distant Object Categories (to be run in the app process, with headers exposed to the test process).
  2. FunctionalOutOfProcessTests

    Related Targets:

    • Functional Out-Of-Process Tests: The XCUITest target which contains tests that interact with System Alerts and backgrounding / foregrounding.
    • FunctionalTestRig: The Application under test with all its resources (to be run in the app process).
  3. FunctionalTestRigSwift

    Related Targets:

    • Functional Swift Tests: The Swift XCUITest target which contains the Swift test sources (to be run in the test process).
    • FunctionalTestRigSwift: The Application under test with all its resources (to be run in the app process) for running Swift Tests.
    • HostDOCategoriesSwift: Distant Object Extensions in Swift (to be run in the app process, with headers exposed to the test process).