@@ -165,15 +165,15 @@ class IntegrationTestsManager {
165165 IntegrationArguments .fromBrowser (_browser);
166166 final int exitCode = await runProcess (
167167 executable,
168- arguments.getTestArguments (testName, 'debug ' ),
168+ arguments.getTestArguments (testName, 'profile ' ),
169169 workingDirectory: directory.path,
170170 );
171171
172172 if (exitCode != 0 ) {
173173 io.stderr
174174 .writeln ('ERROR: Failed to run test. Exited with exit code $exitCode '
175175 '. To run $testName locally use the following command:'
176- '\n\n ${arguments .getCommandToRun (testName , 'debug ' )}' );
176+ '\n\n ${arguments .getCommandToRun (testName , 'profile ' )}' );
177177 return false ;
178178 } else {
179179 return true ;
@@ -341,7 +341,7 @@ class ChromeIntegrationArguments extends IntegrationArguments {
341341
342342 String getCommandToRun (String testName, String mode) {
343343 String statementToRun = 'flutter drive '
344- '--target=test_driver/${testName } -d web-server --debug '
344+ '--target=test_driver/${testName } -d web-server --profile '
345345 '--browser-name=chrome --local-engine=host_debug_unopt' ;
346346 if (isLuci) {
347347 statementToRun = '$statementToRun --chrome-binary='
@@ -359,8 +359,7 @@ class FirefoxIntegrationArguments extends IntegrationArguments {
359359 '--target=test_driver/${testName }' ,
360360 '-d' ,
361361 'web-server' ,
362- // Keep running Firefox on release mode.
363- '--release' ,
362+ '--$mode ' ,
364363 '--browser-name=firefox' ,
365364 '--headless' ,
366365 '--local-engine=host_debug_unopt' ,
@@ -381,7 +380,7 @@ class SafariIntegrationArguments extends IntegrationArguments {
381380 '--target=test_driver/${testName }' ,
382381 '-d' ,
383382 'web-server' ,
384- '--release' , // Keep running Safari on release mode.
383+ '--$ mode ' ,
385384 '--browser-name=safari' ,
386385 '--local-engine=host_debug_unopt' ,
387386 ];
0 commit comments