Update flutter_tools README with tips (#83369)

This commit is contained in:
Filip Hracek 2021-05-25 13:49:02 -07:00 committed by GitHub
parent c835ad4362
commit 1b20072650
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,9 +73,21 @@ $ flutter test
``` ```
The tests in `test/integration.shard` are slower to run than the tests in The tests in `test/integration.shard` are slower to run than the tests in
`test/general.shard`. They also require the `FLUTTER_ROOT` environment variable `test/general.shard`. Depending on your development computer, you might
to be set and pointing to the root of the Flutter SDK. To run only the tests in `test/general.shard`, in this want to increase timeouts and limit concurrency.
directory run: The integration tests also require the `FLUTTER_ROOT` environment variable
to be set.
The full invocation to run everything might therefore look something like:
```shell
$ FLUTTER_ROOT=~/path/to/flutter-sdk
$ flutter test --timeout 2x --concurrency 1
```
This will take about an hour to complete.
To run only the tests in `test/general.shard` (which takes about a minute),
in this directory run:
```shell ```shell
$ flutter test test/general.shard $ flutter test test/general.shard
``` ```