
Bug: 1452264 Change-Id: Ia0ecafc1a5322bd705ffe131aaf2649078f15cfa Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4654766 Commit-Queue: An Sung <ansung@google.com> Reviewed-by: Dirk Pranke <dpranke@google.com> Reviewed-by: Ali Juma <ajuma@chromium.org> Reviewed-by: Weizhong Xia <weizhong@google.com> Cr-Commit-Position: refs/heads/main@{#1175194}
31 lines
976 B
Markdown
31 lines
976 B
Markdown
# Deploying content_shell and running web_tests on Fuchsia
|
|
|
|
[TOC]
|
|
|
|
General instruction on running and debugging web_tests can be found
|
|
[here](../testing/web_tests.md).
|
|
|
|
Unlike on other platforms, where tests are directly invoked via the
|
|
[blink test script](third_party/blink/tools/blinkpy/web_tests/run_web_tests.py),
|
|
Fuchsia layers on top [its own test script] (../../build/fuchsia/test/run_test.py),
|
|
which handles preparation such as installing the content_shell binary.
|
|
|
|
Currently, only
|
|
[a small subset of web tests](../../third_party/blink/web_tests/TestLists/Default.txt)
|
|
can be run on Fuchsia. Build the target `blink_web_tests` first before running any
|
|
of the commands below:
|
|
|
|
## Hermetic emulation
|
|
|
|
The test script brings up an emulator, runs the tests on it, and shuts the
|
|
emulator down when finished.
|
|
```bash
|
|
$ <output-dir>/bin/run_blink_web_tests
|
|
```
|
|
|
|
## Run on an physical device.
|
|
|
|
```bash
|
|
$ <output-dir>/bin/run_blink_web_tests --target-id=<device-target-id>
|
|
```
|