This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Replace KIF with XCUITest #4794
Labels
accessibility
Integration with screen readers and other assistive technology
iOS
Mapbox Maps SDK for iOS
tests
Comments
This was referenced Apr 22, 2016
1ec5
added a commit
that referenced
this issue
Apr 27, 2016
Added a UI test bundle that uses XCUITest to test iosapp. The bundle contains some basic tests of annotation functionality. Gather code coverage data in the iosapp and dynamic schemes. Added accessibility identifiers for key controls in the SDK and iosapp. Working towards #4794.
1ec5
added a commit
that referenced
this issue
Apr 28, 2016
Added a UI test bundle that uses XCUITest to test iosapp. The bundle contains some basic tests of annotation functionality. Gather code coverage data in the iosapp and dynamic schemes. Added accessibility identifiers for key controls in the SDK and iosapp. Working towards #4794.
1ec5
added a commit
that referenced
this issue
May 4, 2016
Added a UI test bundle that uses XCUITest to test iosapp. The bundle contains some basic tests of annotation functionality. Gather code coverage data in the iosapp and dynamic schemes. Added accessibility identifiers for key controls in the SDK and iosapp. Working towards #4794.
1ec5
added a commit
that referenced
this issue
May 5, 2016
Added a UI test bundle that uses XCUITest to test iosapp. The bundle contains some basic tests of annotation functionality. Gather code coverage data in the iosapp and dynamic schemes. Added accessibility identifiers for key controls in the SDK and iosapp. Working towards #4794.
Though not utilizing |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
accessibility
Integration with screen readers and other assistive technology
iOS
Mapbox Maps SDK for iOS
tests
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
The text was updated successfully, but these errors were encountered: