Matan Lurey
3a17b67353
Add a tag and assert some state in FlutterTestDriver tests. ( #159099 )
...
Towards https://github.com/flutter/flutter/issues/51421 .
Asserts some state we would not like to be hit by in integration tests
using `Flutter*TestDriver`.
In addition, adds a tag that can be used to run all tests that currently
use this pattern:
```sh
flutter test --tags flutter-test-driver
```
This showcases processes leaking quite a bit:
<https://gist.github.com/matanlurey/190d9084d3a45bc5737b8406bc05b4cd >.
2024-11-18 23:37:05 +00:00
Alexander Aprelev
752de49450
Fix hot-restart test by ensuring updated timestmamp is in the future. ( #97247 )
...
On Windows modified timestamps are round down to a second, which can lead to missed file updates.
Fixes https://github.com/flutter/flutter/issues/96677
2022-01-25 14:18:33 -08:00
Christopher Fujino
78de12b82f
[flutter_tools] Fix bug in background_isolate_test.dart ( #97170 )
2022-01-25 09:55:10 -08:00
keyonghan
792a40ed83
Skip flaky test: background_isolate_test.dart: Hot restart kills background isolates ( #96678 )
2022-01-14 16:20:20 -08:00
嘟囔
4f5cc21be2
migrate some file to null safety ( #92957 )
2021-12-16 11:39:12 -08:00
Ian Hickson
f25b833f27
Enable avoid_print
lint. ( #91444 )
2021-10-07 16:48:04 -07:00
Mouad Debbar
c2ea78d231
Revert "Enable avoid_print
lint. ( #91332 )" ( #91438 )
...
This reverts commit cb378edc9e
.
2021-10-07 16:16:17 -04:00
Ian Hickson
cb378edc9e
Enable avoid_print
lint. ( #91332 )
2021-10-07 09:53:03 -07:00
Anis Alibegić
c99ed373b3
Fixed large amount of spelling errors ( #83744 )
2021-06-02 10:14:06 -07:00
Jonah Williams
74bd7b6f6d
[flutter_tools] opt all flutter tool libraries and tests out of null safety. ( #74832 )
...
* opt out the flutter tool
* oops EOF
* fix import
* Update tool_backend.dart
* Update daemon_client.dart
* fix more
2021-01-27 15:17:53 -08:00
Jonah Williams
6b444c4dd7
[flutter_tools] standardize patterns for integration.shard ( #64980 )
...
Integration tests must only go through the real file system/process manager/platform. The global indirection makes this code harder to understand than if it directly referred to the concrete instances that are being used.
Update the integration shard to use a const instance of a LocalFIleSystem, LocalProcessManager, and LocalPlatform. Remove global usage and apply testWithoutContext.
2020-09-08 15:56:00 -07:00
Jonah Williams
d98213c46f
[flutter_tools] reland: Update background isolates when performing hot reload/restart ( #52479 )
...
Reland of #52149
2020-03-12 12:48:05 -07:00
Zachary Anderson
04a1b78b75
Revert "[flutter_tools] Update background isolates when performing hot reload/restart ( #52149 )" ( #52476 )
...
This reverts commit edd03a1af8
.
2020-03-12 09:02:31 -07:00
Jonah Williams
edd03a1af8
[flutter_tools] Update background isolates when performing hot reload/restart ( #52149 )
...
When performing a hot restart, collect isolates without an attached flutter view and send a kill signal. These must have been spawned by running main, so restarting without removing them leads to isolate duplication.
When performing a hot reload, ensure that we send a reloadSources command to every isolate and not just uiIsolates.
2020-03-11 15:52:04 -07:00