[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:
nturgut 2021-01-05 10:57:01 -08:00 committed by GitHub
parent 5113c50a36
commit 985e5ff324
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -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,

View File

@ -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.',