Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Replace KIF with XCUITest #4794

Closed
Closed

Description

@1ec5

We should replace the KIF-based iOS SDK functional tests with similar tests based on XCUITest. The KIF tests have long suffered from unreliability such as #2734. Random failures forced us to disable tests one by one (e.g., #2734, #2769, and #3555) until we finally removed the entire suite from CI in #4594. We’ve had good results so far with the non-UI unit tests added to OS X in #3406 and to iOS in #4641. Hopefully XCUITest will be similarly reliable due to its tighter system integration.

Thanks to improvements in the build system in #4641, it’s quite easy to add a UI test bundle to the iOS project. We can replicate the gesture tests using -[XCUICoordinate pressForDuration:thenDragToCoordinate:] and some UILabels that we continuously update with the map view’s current state. XCUITest operates on accessibility elements, whereas our existing annotation-related tests rely on access to the actual MGLMapView object, so converting them is blocked by #1496.

/cc @friedbunny @boundsj

Activity

  1. added
    iOS
    on Apr 22, 2016
  2. added this to the ios-v3.3.0 milestone on Apr 22, 2016
  3. modified the milestones: ios-v3.4.0, ios-future on Jul 11, 2016
  4. added
    accessibility
    on Dec 7, 2016
  5. removed this from the ios-future milestone on Nov 15, 2017
  6. friedbunny commented on May 25, 2018

    @friedbunny
    Contributor

    Though not utilizing XCUITest, #10873 added integration tests that cover this goal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    accessibilityiOStests

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions