Description
test/pkgs/test_core/lib/src/runner/load_suite.dart
Lines 23 to 29 in db8cf09
The timeout for loading the test suit is fixed. I assume this the root cause for the issue that we have with running flutter test integration_test
with heavy apps: flutter/flutter#105913:
12:00 +0 -1: loading /Users/runner/work/sharezone-app/sharezone-app/app/integration_test/app_test.dart [E]
TimeoutException after 0:12:00.000000: Test timed out after 12 minutes.
package:test_api/src/backend/invoker.dart 333:28 Invoker._handleError.<fn>
As the documentation of the variables says, determines this variable how long the test command tries to compile the application. Therefore, I assume that this is the issue.
People pass the --timeout
flag (like --timeout none
) to the flutter test
command but are confused why their integration test timeout. To proper fix this issue, I think we need to make this timeout configure.
Another workaround would be to add the --ignoreTimeout
flag of the Dart test command also the Flutter test command and pass it.