This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
Introduces a test harness for integrated regression tests on iOS #10873
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR introduces two new targets in
ios.xcodeproject
:Integration Test Harness.app
and anintegration.xctest
bundle. The former is an empty iOS app providing nothing more than an app delegate and a window, and the latter is a test bundle which contains one integrated test to guard against a potential regression of #10755. In order to write a legitimately failing behavioral test we need to place the map view in a superview within a key window, and it is not possible to make a window key in ourtest.xctest
bundle as it does not use an iOS app as its bundle loader.It is my hope that this will help us when it comes time to refactor to address #10771, for example. This can also serve as a starter pattern for writing regression tests against this kind of crash in the future (or at least as a conversation starter). I'm super open to suggestions around organizing/naming this stuff, as well as on this approach in general.
The failure on CI has been narrowed down to an Xcode 9.0 issue. We should hold this back until we're able to move forward to a newer version of Xcode on Circle CI. I also want to tidy up the commit log before merging.
Update: we have moved forward to Xcode 9.2 on CI, and the commit log is tidier now. Should be ready to merge. I'm going to wait to rebase on top of #10918 however.
/cc @friedbunny