Skip to content

Commit 985e5ff

Browse files
author
nturgut
authored
[web] add web-renderer option to flutter test. run web tests with this option (flutter#73069)
* add web-renderer option to flutter test. run web tests with this option * remove debug lines
1 parent 5113c50 commit 985e5ff

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

dev/bots/test.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1192,6 +1192,8 @@ Future<void> _runFlutterWebTest(String workingDirectory, List<String> tests) asy
11921192
'--concurrency=1', // do not parallelize on Cirrus, to reduce flakiness
11931193
'-v',
11941194
'--platform=chrome',
1195+
// TODO(ferhatb): Run web tests with both rendering backends.
1196+
'--web-renderer=html', // use html backend for web tests.
11951197
'--sound-null-safety', // web tests do not autodetect yet.
11961198
...?flutterTestArgs,
11971199
...tests,

packages/flutter_tools/lib/src/commands/test.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ class TestCommand extends FlutterCommand {
3232
usesTrackWidgetCreation(verboseHelp: verboseHelp);
3333
addEnableExperimentation(hide: !verboseHelp);
3434
usesDartDefineOption();
35+
usesWebRendererOption();
3536
argParser
3637
..addMultiOption('name',
3738
help: 'A regular expression matching substrings of the names of tests to run.',

0 commit comments

Comments
 (0)