Flutter Engine
The Flutter Engine
|
To run the Flutter runner integration tests locally, first start a Fuchsia package server:
Then run the integration test:
For example, to run the embedder
integration test:
Command-line options:
--unoptimized
to disable C++ compiler optimizations.--fuchsia-cpu x64
or --fuchsia-cpu arm64
to target a particular architecture. The default is x64.--runtime-mode debug
or --runtime-mode profile
to switch between JIT and AOT builds. These correspond to a vanilla Fuchsia build and a --release
Fuchsia build respectively. The default is debug/JIT builds.--no-lto
if you care about performance or binary size; unfortunately it results in a much slower build.By default, run_integration_test.sh
will build Fuchsia and start up a Fuchsia emulator to ensure that the test runs on the correct environment.
However, this is slow for iterating on tests. Once you've run run_integration_tests.sh
once, you don't need to build Fuchsia or start the emulator anymore, and can pass --skip-fuchsia-build
and --skip-fuchsia-emu
to skip those steps.