mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
[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
This commit is contained in:
parent
5113c50a36
commit
985e5ff324
@ -1192,6 +1192,8 @@ Future<void> _runFlutterWebTest(String workingDirectory, List<String> tests) asy
|
||||
'--concurrency=1', // do not parallelize on Cirrus, to reduce flakiness
|
||||
'-v',
|
||||
'--platform=chrome',
|
||||
// TODO(ferhatb): Run web tests with both rendering backends.
|
||||
'--web-renderer=html', // use html backend for web tests.
|
||||
'--sound-null-safety', // web tests do not autodetect yet.
|
||||
...?flutterTestArgs,
|
||||
...tests,
|
||||
|
||||
@ -32,6 +32,7 @@ class TestCommand extends FlutterCommand {
|
||||
usesTrackWidgetCreation(verboseHelp: verboseHelp);
|
||||
addEnableExperimentation(hide: !verboseHelp);
|
||||
usesDartDefineOption();
|
||||
usesWebRendererOption();
|
||||
argParser
|
||||
..addMultiOption('name',
|
||||
help: 'A regular expression matching substrings of the names of tests to run.',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user