-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[image_picker] Run CocoaPods iOS tests in RunnerUITests target #3663
Conversation
18c4c30
to
19dc6ca
Compare
target 'RunnerUITests' do | ||
inherit! :search_paths | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Checked in the Podfile
to inherit search_paths
so Flutter linker flags are hooked up. See #3145 for similar fix.
19dc6ca
to
fc5740c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I remember these are unit tests, should we create a separate target for unit tests?
I didn't know you can combine unit tests and ui tests in a same target.
You can run whatever you want in the UI tests as long as the symbols are available. The It worked: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, maybe we should rename the target to RunnerTest in the future which would be more accurate.
Sure, we can use whatever test target name we want once #3667 merges. |
* master: Adopt Xcode 12 for podspec lints (flutter#3653) Run static analyzer during xctest (flutter#3667) [google_maps_flutter_web] update min flutter sdk version to 1.20.0 (flutter#3662) [image_picker] Run CocoaPods iOS tests in RunnerUITests target (flutter#3663) [webview_flutter] Run CocoaPods iOS tests in RunnerUITests target (flutter#3664) [device_info] Enable NNBD for unit test (flutter#3658) remove unused plugin (flutter#3661) [android_intent] move unit test to nullsafety (flutter#3659) [url_launcher] Migrate unit tests to NNBD (flutter#3657) [share] Migrate unit tests to null-safety. (flutter#3660) [connectivity_for_web] Migration to null-safety. (flutter#3652) [camera] Stable release for null safety. (flutter#3641) [in_app_purchase] fix plugin version (flutter#3654) Move plugin tool tests over (flutter#3606) [in_app_purchase] migrate playing billing library to v3 (flutter#3636) Update plugin_platform_interface min version (flutter#3650) # Conflicts: # packages/webview_flutter/CHANGELOG.md # packages/webview_flutter/example/ios/Runner.xcodeproj/project.pbxproj
pod lib lint
has been used to run iOS unit tests and the static analyzer. Unfortunately due to Flutter not supporting ARM iOS simulators and the fact that we can't tell thepod
command to skip analyzing on that architecture, this has prevented the plugins CI from migrating to Xcode 12 and is blocking Flutter from increasing the Xcode minimum version to 12.Now that we have a full-fledged xctest_command we can migrate some of the value we were getting from
pod lib lint
.Migrate
image_picker
package to run all the unit tests as part of theRunnerUITests
target. Remove the oldimage_picker_exampleTests
in favor ofRunnerUITests
.Also swap
VALID_ARCHS
to the Xcode 12EXCLUDED_ARCHS
generated by the Flutter template as of flutter/flutter#64504