Add --ignore-timeouts
flag for flutter test
command
#164437
Open
+19
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As in #105913 described, running integration tests of your app often times out. The issue for this is that the
test
package has their own timeout for loading the test suite:https://github.com/dart-lang/test/blob/db8cf091506a67eba1e523215e0e49a0db7cd1fd/pkgs/test_core/lib/src/runner/load_suite.dart#L23-L29
This timeout is not configurable. However, you can bypass this timeout using
--ignore-timeouts
when runningdart test
. This PR adds the--ignore-timeouts
flag to theflutter test
command and passes it to thetest
package.Adding the flag would be the easiest fix for #105913. I will later add documentation to the integration test docs, that passing this flag will fix the timeout issue. Otherwise, we would need to make the load test suite timeout configurable in the
test
package and then somehow set it in theflutter test
command.Fixes #105913
A screenshot of running
flutter test integration_test --ignore-timeouts
which surpasses the previous timeout of 12 minutes.Pre-launch Checklist
///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.