Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 2ba5633

Browse files
authored
instructions for running firefox/safari tests (#14562)
* instructions for running firefox/safari tests * addressing reviewer comments.
1 parent f317f8f commit 2ba5633

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

lib/web_ui/dev/README.md

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,36 @@ felt build [-w] -j 100
3131
If you are a Google employee, you can use an internal instance of Goma to parallelize your builds. Because Goma compiles code on remote servers, this option is effective even on low-powered laptops.
3232

3333
## Running web engine tests
34-
To run all tests:
34+
To run all tests on Chrome:
35+
3536
```
3637
felt test
3738
```
3839

40+
To run tests on Firefox (this will work only on a Linux device):
41+
42+
```
43+
felt test --browser=firefox
44+
```
45+
46+
For Chrome and Firefox, the tests run on a version locked on the [browser_lock.yaml](https://github.com/flutter/engine/blob/master/lib/web_ui/dev/browser_lock.yaml). In order to use another version, add the version argument:
47+
48+
```
49+
felt test --browser=firefox --firefox-version=70.0.1
50+
```
51+
52+
To run tests on Safari use the following command. It works on MacOS devices and it uses the Safari installed on the OS. Currently there is no option for using another Safari version.
53+
54+
```
55+
felt test --browser=safari
56+
```
57+
3958
To run a single test:
4059
```
4160
felt test test/golden_tests/engine/canvas_golden_test.dart
4261
```
4362

44-
To debug a test:
63+
To debug a test on Chrome:
4564
```
4665
felt test --debug test/golden_tests/engine/canvas_golden_test.dart
4766
```

0 commit comments

Comments
 (0)