mirror of
https://github.com/encounter/engine.git
synced 2026-03-30 11:09:55 -07:00
d3c60acef8
New features for golden tests (for web): * Height/width of headless browser instance extracted to constants * Remove border from the host iframe * Added 'region' to matchGoldenFile, so screenshots can capture only a subset of the viewport * Added image-format-awareness (png) to screenshot comparison, so it doesn't only look at raw bytes * When a test fails, output a diff image alongside the unexpected output.
What's felt?
felt stands for "Flutter Engine Local Tester". It's a cli tool that aims to make development in the Flutter web engine more productive and pleasant.
What can felt do?
felt supports multiple commands as follows:
felt check-licenses: Checks that all Dart and JS source code files contain the correct license headers.felt test: Runs all or some tests depending on the passed arguments.felt build: Builds the engine locally so it can be used by Flutter apps. It also supports a watch mode for more convenience.
You could also run felt help or felt help <command> to get more information about the available commands and arguments.
How can I use felt?
Once you have your local copy of the engine setup, you'll need to add /path/to/engine/src/flutter/lib/web_ui/dev to your PATH.
Then you would be able to use the felt tool from anywhere:
felt check-licenses
or:
felt build --watch