Adjust test configs
- Disable web plugin implementation package Dart tests on Windows hosts;
that config has never been supported.
- Split Linux Dart unit tests into two shards, since tehy are now quite
long.
- Disable `flutter_migrate` Dart tests on the Windows host, for time.
- Temporarily disable a failing test on `stable`, with a TODO+issue.
diff --git a/.cirrus.yml b/.cirrus.yml
index 4f6cf53..ad467b7 100644
--- a/.cirrus.yml
+++ b/.cirrus.yml
@@ -236,6 +236,9 @@
- name: dart_unit_tests
env:
matrix:
+ PACKAGE_SHARDING: "--shardIndex 0 --shardCount 2"
+ PACKAGE_SHARDING: "--shardIndex 1 --shardCount 2"
+ matrix:
CHANNEL: "master"
CHANNEL: "stable"
unit_test_script:
@@ -315,7 +318,13 @@
build_script:
- ./script/tool_runner.sh build-examples --web
drive_script:
- - ./script/tool_runner.sh drive-examples --web --exclude=script/configs/exclude_integration_web.yaml
+ # TODO(stuartmorgan): Figure out why url_launcher_web is failing on stable and re-enable it:
+ # https://github.com/flutter/flutter/issues/121161
+ - if [[ "$CHANNEL" == "master" ]]; then
+ - ./script/tool_runner.sh drive-examples --web --exclude=script/configs/exclude_integration_web.yaml
+ - else
+ - ./script/tool_runner.sh drive-examples --web --exclude=script/configs/exclude_integration_web.yaml,url_launcher_web
+ - fi
- name: web_benchmarks_test
env:
matrix:
diff --git a/script/configs/windows_unit_tests_exceptions.yaml b/script/configs/windows_unit_tests_exceptions.yaml
index 99eb7bc..1679108 100644
--- a/script/configs/windows_unit_tests_exceptions.yaml
+++ b/script/configs/windows_unit_tests_exceptions.yaml
@@ -1,4 +1,25 @@
# Packages that are excluded from dart unit test on Windows.
-
# Exclude flutter_image because its tests need a test server, so are run via custom_package_tests.
- flutter_image
+# This test is very slow, so isn't worth running a second time
+# on Windows; the Linux run is enough coverage.
+- flutter_migrate
+# Unit tests for plugins that support web currently run in
+# Chrome, which isn't currently supported by web infrastructure.
+# TODO(ditman): Fix this in the repo tooling.
+- camera
+- camera_web
+- file_selector
+- file_selector_web
+- google_maps_flutter_web
+- google_sign_in
+- google_sign_in_web
+- image_picker
+- image_picker_for_web
+- shared_preferences
+- shared_preferences_web
+- url_launcher
+- url_launcher_web
+- video_player
+- video_player_web
+- webview_flutter_web