Commit Graph

453 Commits

Author SHA1 Message Date
Ian Hickson
1133921c4d
Add more debugging logs to overall_experience_test (#86368) 2021-07-13 16:56:06 -07:00
Ian Hickson
d3c17acf9d
Run "pub global activate devtools" before overall_experience_test (#85812) 2021-07-12 14:36:05 -07:00
Yegor
78e06e716b
[web] move e2e tests from flutter/engine to flutter/flutter (#86119)
* [web] move e2e tests from flutter/engine to flutter/flutter
* flutter update-packages --force-upgrade
2021-07-09 15:31:49 -07:00
Greg Spencer
6adea05276
Revert "Randomize Framework tests, opt out some tests that currently fail. (#85159)" (#85673)
This reverts commit b5f9612 because it is taking about 40% longer to run the tests, which is causing timeouts.
2021-06-30 19:38:09 -07:00
Greg Spencer
b5f9612cac
Randomize Framework tests, opt out some tests that currently fail. (#85159)
This turns on order shuffling for all tests that don't fail with it on, marking those tests that do fail with a tag so that they will be run without shuffling on.

To determine which tests fail with it on, I ran all the tests 100 times with different random shuffle seeds, and then also ran it with the date seeds from today until the end of July, and tagged all of the test suites (files) that fail, with a seed that caused them to fail.
2021-06-29 13:46:13 -07:00
Jonah Williams
def601ac17
[flutter_tools] re-enable all tests on windows (#85384) 2021-06-27 05:26:02 -07:00
Greg Spencer
88f3811055
Turn on avoid_dynamic_calls lint, except packages/flutter tests, make appropriate changes. (#84476)
This adds avoid_dynamic_calls to the list of lints, and fixes all instances where it was violated.

Importantly, this lint is NOT turned on for flutter/packages/test, because those changes are happening in another PR: #84478
2021-06-14 14:16:57 -07:00
Alexandre Ardhuin
34059eec2c
enable lint prefer_interpolation_to_compose_strings (#83407) 2021-06-01 11:14:06 -07:00
Christopher Fujino
62d00c6d5f
Migrate flutter conductor out of dev/tools and into its own directory (#83313)
* Migrate flutter conductor out of dev/tools and into its own directory

* flesh out documentation

* fix analysis options

* fix integration test
2021-05-25 16:12:53 -07:00
sigmundch
6b6b71ffa6
Pass --local-engine* from dev/bots/test.dart to pub test (only web) (#83308)
This is bassically reapplying #71721, but only enables it on web tests.

There are known issues that several tests under the `integration.shard`
depend on a specific platform, and as a result they require some
additional flexiblity (bots need to build more than one engine, and the
test flags should allow for secondary engines to be picked by such
tests).

By enabling this on the web-test shard, we will reduce the false
positives in the dart-flutter-HHH-web bot.

Fixing the more general problem is tracked by #72368.
2021-05-25 10:50:06 -07:00
David Iglesias
c94f0bea65
[web] Make web integration tests shadow DOM aware. (#82926) 2021-05-20 16:14:02 -07:00
godofredoc
4924969347
Revert "Turn on win_build_tests_2_3 shard, skip 'build windows' tests (#82386)" (#82396)
This reverts commit a66e5a7fa0.
2021-05-13 11:56:32 -07:00
Yegor
d6fc44ba67
shuffle tests in web_long_running_tests shard (#82394) 2021-05-12 18:04:03 -07:00
Jenn Magder
a66e5a7fa0
Turn on win_build_tests_2_3 shard, skip 'build windows' tests (#82386) 2021-05-12 17:16:13 -07:00
Yegor
0420d56335
consolidate all web integration tests under the same shard (#82307)
* consolidate all web integration tests under the same shard
2021-05-12 15:01:11 -07:00
stuartmorgan
ab2aa31944
Roll plugins to 0c99a3ba749bbdc57b0d8895cdfaeef835119613 (#82356)
Manual plugin roll to account for a rename of the script used to run
analysis.
2021-05-12 09:58:32 -07:00
Yegor
6b2f3bc113
add web e2e and smoke tests to the long running test shard (#82281) 2021-05-11 13:15:36 -07:00
Ian Hickson
7ec7d4dae6
Test the skp_generator. (#81087) 2021-04-23 16:06:40 -07:00
Dan Field
e7b7ebc066
Shake widget inspector from non-debug builds (#80157) 2021-04-14 21:54:03 -07:00
Casey Hillers
c571804913
Revert "Reland [devicelab] Migrate Gallery to BuildTestTask (#78361)" (#79903)
This reverts commit 0c9781e3dd.
2021-04-06 16:28:54 -07:00
Casey Hillers
0c9781e3dd
Reland [devicelab] Migrate Gallery to BuildTestTask (#78361) 2021-04-06 16:04:03 -07:00
David Iglesias
40ed6a6ddb
[ci] Run same script to analyze plugins as flutter/plugins. (#79008) 2021-03-24 18:04:04 -07:00
Jenn Magder
c90cd65a38
Standardize tool test shard selection (#78636) 2021-03-19 15:33:36 -07:00
Jenn Magder
2dbe1ec8fb
Move web tool test per-test timeout to shard (#78508) 2021-03-18 11:50:49 -07:00
Casey Hillers
c30fdfbe82
Revert "[devicelab] Migrate Gallery to BuildTestTask (#77956)" (#78355)
This reverts commit 93fb258602.
2021-03-16 12:20:36 -07:00
Casey Hillers
93fb258602
[devicelab] Migrate Gallery to BuildTestTask (#77956) 2021-03-16 11:58:03 -07:00
Gary Qian
ee41782732
[flutter_tools] Deferred components build system (#76192) 2021-03-04 18:09:02 -08:00
Jenn Magder
90c66f5db3
Turn on desktop and web integration tests for beta and stable (#76433) 2021-02-22 18:21:03 -08:00
Jenn Magder
9ab50033fc
Build more integration tests during pre-submit (#76554) 2021-02-22 14:04:09 -08:00
Yegor
e7953b3be4
[web] new service worker loading mechanism (#75535) 2021-02-11 09:16:21 -08:00
Jenn Magder
cdaa1a76f3
Remove dead tool_coverage code (#75185) 2021-02-02 16:39:00 -08:00
Jenn Magder
21f89fe0f2
Remove hard-coded subshard numbers from the test runner (#75189) 2021-02-02 12:11:06 -08:00
Jenn Magder
f761ae2ce9
Adopt tool_test shard builders (#75171) 2021-02-02 10:36:03 -08:00
Jenn Magder
d59359f197
Adopt subshard naming convention in build_tests (#75179) 2021-02-01 18:13:38 -08:00
Jenn Magder
8712f63dd8
Split tools_tests subshards into separate shards to support sub-sub-sharding (#75033) 2021-02-01 12:51:33 -08:00
Dan Field
3ece9c63d9
Flutter_driver nnbd (#74856) 2021-01-27 23:55:26 -08:00
Kate Lovett
f04616f723
Migrate flutter_goldens to null safety (#74853) 2021-01-27 17:29:04 -08:00
Michael Goderbauer
06f051b2d5
Migrate remaining examples to null-safety (#74857) 2021-01-27 17:26:23 -08:00
Michael Goderbauer
c505ee79de
Run tests in sound null safety mode for fuchsia_remote_debug_protocol (#74848) 2021-01-27 17:24:03 -08:00
Christopher Fujino
353add83e7
Re-land codesign test improvement (#73997) 2021-01-25 14:04:04 -08:00
Jenn Magder
35000147e6
Re-add tool test general per-test timeout (#74531) 2021-01-25 12:47:01 -08:00
Dan Field
1b373f45b7
Remove unused bigquery code and deps (#74532) 2021-01-22 16:21:01 -08:00
Jonah Williams
7ee910b0a8
[flutter_tools] ensure --dart-define can parse args with commas (#73798) 2021-01-15 13:51:32 -08:00
Christopher Fujino
66ba4b244d
Revert "Improve codesign script (#71244)" (#73961)
This reverts commit b7f5aef11a.
2021-01-14 18:40:29 +00:00
Christopher Fujino
b7f5aef11a
Improve codesign script (#71244) 2021-01-14 18:22:08 +00:00
nturgut
985e5ff324
[web] add web-renderer option to flutter test. run web tests with this option (#73069)
* add web-renderer option to flutter test. run web tests with this option

* remove debug lines
2021-01-05 10:57:01 -08:00
nturgut
272b23cabd
[web] make sure tests and benchmarks use correct backend - add autodetect false (#73047)
* add autodetect false

* fix typo
2020-12-28 10:55:53 -08:00
nturgut
10c358bafa
run framework unit tests on html backend (#72756) 2020-12-21 16:07:51 -08:00
nturgut
14206399c3
make sure tests and becnhmarks use correct backend (#72628) 2020-12-21 09:55:23 -08:00
Kate Lovett
e9a8315fd2
Remove deprecated CupertinoTextThemeData.brightness (#72017) 2020-12-15 12:48:04 -08:00
Martin Kustermann
72aa23eb93
Revert "Pass --local-engine* flags from dev/bots/test.dart down to pub test via env variables (#71721)" (#72141)
This reverts commit 4300226a50.

Reason for revert: The original PR correctly passes down the local
engine flags to subprocesses of the tests. Though this causes issues
because some tests assume a specific target but do not modify the
value for `--local-engine` (which is set to `host_debug`) to reflect
that.

See more discussion here:

    https://github.com/flutter/flutter/pull/71721#issuecomment-743218994
2020-12-11 17:10:32 +01:00
Jenn Magder
be1325f18b
Add integration_test to integration tests build shard (#71934) 2020-12-09 13:07:36 -08:00
Martin Kustermann
4300226a50
Pass --local-engine* flags from dev/bots/test.dart down to pub test via env variables (#71721) 2020-12-04 09:33:04 -08:00
Jonah Williams
e5000f6cea
[flutter_tools] Remove usage of --precompiled flag for web tests (#70977) 2020-12-01 09:54:01 -08:00
Jonah Williams
7ab0442868
Add testing shard for release mode guard (#71411) 2020-12-01 09:53:50 -08:00
Amir Hardon
2ceb371d21
Pin the version of flutter/plugins to test against (#71166) 2020-11-24 17:18:06 -08:00
Amir Hardon
2b4a23586d
Add a post-submit test shard for flutter/plugins tests (#70887)
Adds a new Luci test shard that runs flutter/plugins tests.

For now only the analysis phase of the flutter/plugins test suite is executed.

Manual invocation on Luci completed successfully: 3210bb2dac/+/annotations
2020-11-23 12:28:28 -08:00
Jonah Williams
a76289bb1b
[flutter_tools] run web unit tests in sound null safety (#70799) 2020-11-19 16:49:05 -08:00
Jonah Williams
cfb63356c3
[flutter_tools] use frontend_server for web test compilation (#70714) 2020-11-18 14:55:26 -08:00
Darren Austin
1c7e34bb20
Migrate flutter_localizations to null safety. (#68645)
Migrate flutter_localizations to null safety.
2020-11-12 15:13:51 -08:00
Anna Gringauze
edf26e756d
Move web integration tool tests to web.shard (#70226)
* Move web integration tool tests to web.shard

Web integration tool tests depend on DDC changes in SDK. This change
moves them to a separate shard and subshard so CI bot configurations
can run them separately.

In particular, with will allow running those tests on dart CI flutter
HHH web bot instead of a non-web one, allowing early detection and easy
classification of issues caused by SDK changes as VM- or Web related.

* Enabled verbose mode for flaky web_tool_tests

* Split out the test changes to be commited first
2020-11-11 15:42:15 -08:00
Yuqian Li
8e7748e74c
Reland migration (#69996)
This reverts ae0a9cb560 and therefore relands #69629.

Additionally, `flutter update-packages --force-upgrade` has been run to update `pubspec.yaml` to resolve the analyze test failures.
2020-11-08 20:32:04 -08:00
Jonah Williams
6e3ebc9350
[flutter_tools] only run web shard if requested (#69932) 2020-11-05 23:58:40 -08:00
Jonah Williams
6fe800abd5
[null-safety] remove enable experiment flags (#69930) 2020-11-05 23:58:11 -08:00
Dan Field
76784651d4
Move package:integration_test to flutter/flutter (#69622) 2020-11-05 17:28:47 -08:00
Jonah Williams
a3f6ea6f38
[flutter_tools] split web integration tests into new shard (#69914) 2020-11-05 17:21:44 -08:00
Jenn Magder
ae0a9cb560
Revert "Initial migration of metrics_center (#69629)" (#69848)
This reverts commit ada6b7e57e.
2020-11-04 19:18:38 -08:00
Yuqian Li
ada6b7e57e
Initial migration of metrics_center (#69629)
For the ease of code reviews, this only includes minimal code from
MetricPoint, GoogleBenchmarksParser, and their unit tests.

See go/flutter-metrics-center-migration for the overall plan.
2020-11-04 17:13:41 -08:00
Yegor
f03ac0be81
start and stop chromedriver once per sub-shard; do not wait for it to quit (#69443)
* start and stop chromedriver once per sub-shard; do not wait for it to quit

* enable web_long_running_tests but keep them as flaky
2020-10-30 17:27:55 -07:00
Jonah Williams
3e41962dff
[null-safety] update tests and tool auto-detection for null safe dart (#69405)
Disable null safety auto-detection for the web
2020-10-30 13:42:54 -07:00
Zachary Anderson
2562224665
Disable tests that time-out on CI (#69432) 2020-10-30 12:46:44 -07:00
Yegor
2fa03438de
add web_long_running_tests shard containing long-running web tests (#67324) 2020-10-29 14:23:02 -07:00
stuartmorgan
c23319ee9f
Enable dev/bots/ build_tests for Linux (#68658)
Enables build_test for Linux. Currently only flutter_gallery has platform directories for the desktop platforms, so this will run only that build, but this will provide an end-to-end build test for Linux.

Other example/test projects can be brought online for Linux in the future just by adding the linux/ directory to the project.
2020-10-29 09:27:59 -07:00
Jonah Williams
7629758ed7
[flutter_tools] measure driver success and failure (#69226)
Currently we only have a test that measures if flutter drive can fail. Unfortunately it has been failing for multiple years based on the fact that the error is due to a missing Gradle config.

Add a smoke success test case, and update both tests to use the test API and the tester-device.
2020-10-28 18:15:23 -07:00
Yegor
7a10b46ee0
Print errors in all build modes (#69046) 2020-10-26 15:57:02 -07:00
stuartmorgan
22c502e315
Add Windows build test (#68657)
Enables build_test for Windows. Currently only flutter_gallery has platform directories for the desktop platforms, so this will run only that build, but this will provide an end-to-end build test for Windows.

Other example/test projects can be brought online for Windows in the future just by adding the windows/ directory to the project.
2020-10-22 15:14:30 -07:00
stuartmorgan
4ea6d3de93
Enable dev/bots/ build_tests for macOS (#68656)
Enables build_test for Windows, macOS, and Linux. Currently only
flutter_gallery has platform directories for the desktop platforms, so
this will run only that build, but this will provide an end-to-end build
test for all three desktop platforms.

Once this lands, other example/test projects can be brought online for
desktop platforms in the future just by adding the relevant platform
directories to the project.
2020-10-22 13:52:19 -07:00
Michael Goderbauer
dd2ea7c503
Migrate all of examples/layers to sound null safety (#68744) 2020-10-22 13:33:07 -07:00
Jonah Williams
a655a1778d
[null-safety] swap tool unit tests to tester (#68733) 2020-10-22 13:17:31 -07:00
Michael Goderbauer
42f3709a5a
Sound null safety for framework and flutter_test (#68642) 2020-10-21 10:09:11 -07:00
Yegor
ff9082cf6d
Refactor command utilities for tests (#68324)
* refactor command running utilities for tests

Co-authored-by: Jonah Williams <jonahwilliams@google.com>
2020-10-19 20:56:25 -07:00
Michael Goderbauer
52d3bef017
Reland removal of examples/catalog (#67545) 2020-10-07 13:17:08 -07:00
Jonah Williams
ddb01a0c81
[null-safety] add integration tests for sound null safety modes, add support for sound null safety in dart2js (#67171)
Add integration tests to verify that ddc and dart2js can be built and run in sound mode. Updates dart2js compilation to insert a language version comment into the generated entrypoint if necessary.

dart-lang/sdk#42253
2020-10-02 21:52:38 -07:00
Michael Goderbauer
19e07d2beb
Migrate flutter_test (#66663) 2020-09-30 17:03:40 -07:00
godofredoc
fd0e223b74
Add Firebase tests to flutter dashboard. (#66677)
This PR also enables firebase tests on presubmit and removes code that
won't be used anymore from test runner.

Bug:
  https://github.com/flutter/infra/pull/225
2020-09-25 14:26:39 -07:00
godofredoc
cfe53fd3c5
Enable linux and win hostonly devicelab tests. (#66085) 2020-09-21 11:27:06 -07:00
Jonah Williams
b88f308af7
[flutter_tools] port deprecated settings test to flutter integration shard (#65806)
Port the deprecated settings devicelab test to tool integration shard. Tests that apps can be built using the deprecated android/settings.gradle file.

Part of #65790
2020-09-15 10:55:07 -07:00
Jonah Williams
4e20f00053
[ci] remove create offline tests (#65791)
Currently these tests are taking CI time without providing any value, because there is no verification that network connectivity is avoided. This is better covered by a unit test that verifies that --offline is passed to pub.
2020-09-14 17:54:59 -07:00
Greg Spencer
94592acb71
Creates a way to test private APIs in the Flutter package. (#65505) 2020-09-13 15:52:03 -07:00
Jonah Williams
3f6c862177
[null-safety] remove sound-null-safety by default, remove experiment flag (#64594)
To allow tests to begin migrating to null safety, sound null safety needs to be disabled. Also removes the experiment flag that is unnecessary since the framework is on the SDK allowlist.
2020-08-25 15:57:54 -07:00
Mouad Debbar
707f995de3
[web] Fix and enable editable_text_test.dart (#64516) 2020-08-25 04:51:03 -07:00
Jonah Williams
69fd5c50a2
[flutter_tools] null assertions off by default for web (#64186)
Like Android/iOS, only enable --null-assertions if asked. Previously this was enabled by default for web, but in general this has proved to be too breaking to enable by default.

#61042
2020-08-19 14:52:47 -07:00
Jonah Williams
38e0c25823
[flutter_tools] reland: enable --null-assertions for flutter framework tests (#64120)
Reland of acdb909 with fixes to semantics.dart

#61042
2020-08-19 13:25:42 -07:00
Jenn Magder
1b47759528
Revert "[null-safety] enable null assertions for framework tests (#64071)" (#64118)
This reverts commit acdb909fcb.
2020-08-18 18:08:51 -07:00
Jonah Williams
acdb909fcb
[null-safety] enable null assertions for framework tests (#64071) 2020-08-18 17:21:04 -07:00
Jenn Magder
0fe1adadd2
Pin iOS module test plugin versions (#63445) 2020-08-11 06:26:05 -07:00
Jenn Magder
31dfaa0c7e
Temporarily turn off module_test_ios during investigation (#63448) 2020-08-10 19:08:35 -07:00
Jonah Williams
e762e7e05f
[flutter_tools] deflake integration tests by running single isolate (#62534)
There are some occasional difficult to repro flakes on the tool integration tests. Try running only a single isolate to simplify the environment a bit.
2020-07-30 11:06:34 -07:00
Jason Simmons
e64fe11542
Manual engine roll to 626244a72c5d53cc6d00c840987f9059faed511a (#62163)
Disabled web_benchmarks_canvaskit in the bot scripts because it was
failing in the Cirrus environment.
2020-07-23 18:11:17 -07:00
Jonah Williams
cb7770b3a5
[flutter_tools] add support for enable null safety asserts (#61114)
Enable null safety asserts for web debug mode. This induces runtime asserts at the boundaries between null safe and non-null safe libraries. Adds integration test that validates assertion error is thrown.

#61042
2020-07-15 09:54:39 -07:00