You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add additional information to DeviceLab readme for running DeviceLab tests locally (flutter#160243)
Fixesflutter#160242
## Pre-launch Checklist
- [x] I read the [Contributor Guide] and followed the process outlined
there for submitting PRs.
- [x] I read the [Tree Hygiene] wiki page, which explains my
responsibilities.
- [x] I read and followed the [Flutter Style Guide], including [Features
we expect every widget to implement].
- [x] I signed the [CLA].
- [x] I listed at least one issue that this PR fixes in the description
above.
- [x] I updated/added relevant documentation (doc comments with `///`).
- [x] I added new tests to check the change I am making, or this PR is
[test-exempt].
- [x] I followed the [breaking change policy] and added [Data Driven
Fixes] where supported.
- [x] All existing and new tests are passing.
If you need help, consider asking for advice on the #hackers-new channel
on [Discord].
Copy file name to clipboardExpand all lines: dev/devicelab/README.md
+13-2Lines changed: 13 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,9 +56,12 @@ You can find where your Android SDK is using `flutter doctor -v`.
56
56
57
57
### Warnings
58
58
59
-
Running the devicelab will do things to your environment.
59
+
Running DeviceLab tests locally will do things to your environment.
60
60
61
-
Notably, it will start and stop Gradle, for instance.
61
+
Notably:
62
+
63
+
- It will automatically start and stop Gradle on your machine
64
+
- It will automatically reboot your target Android or iOS device after a certain amount of tests before running any additional tests on it. See the `checkForRebootRequired()` in `flutter/dev/devicelab/lib/framework/framework.dart` and `device.reboot()` in `flutter/dev/devicelab/lib/framework/devices.dart` for more.
62
65
63
66
### Running tests in `test/...`
64
67
@@ -82,6 +85,14 @@ To run multiple tests, repeat option `-t` (`--task`) multiple times:
By default, DeviceLab tests have an automatic retry logic built in. Any failing tests will be retried 2 additional times. This can be skipped by specifying the `--exit` option:
91
+
92
+
```sh
93
+
../../bin/cache/dart-sdk/bin/dart bin/test_runner.dart test --exit -t {NAME_OF_TEST}
94
+
```
95
+
85
96
### Running tests against a local engine build
86
97
87
98
To run device lab tests against a local engine build, pass the appropriate
0 commit comments