Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 21 additions & 2 deletions lib/web_ui/dev/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,36 @@ felt build [-w] -j 100
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.

## Running web engine tests
To run all tests:
To run all tests on Chrome:

```
felt test
```

To run tests on Firefox (this will work only on a Linux device):

```
felt test --browser=firefox
```

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:

```
felt test --browser=firefox --firefox-version=70.0.1
```

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.

```
felt test --browser=safari
```

To run a single test:
```
felt test test/golden_tests/engine/canvas_golden_test.dart
```

To debug a test:
To debug a test on Chrome:
```
felt test --debug test/golden_tests/engine/canvas_golden_test.dart
```
Expand Down