mirror of
https://github.com/flutter/flutter.git
synced 2026-02-05 19:28:51 +08:00
This PR is the dual of https://dart-review.googlesource.com/c/sdk/+/420700 in the Dart SDK. This PR adds support for user-defines for hooks in the root package `pubspec.yaml`. ```yaml hooks: user_defines: hook_user_defines: # package name magic_value: 1000 ``` For more design considerations see: * https://github.com/dart-lang/native/issues/39 ### Testing This PR is covered by `test/integration.shard/isolated/native_assets_test.dart`. In this PR, we add a new test project `dev/integration_tests/hook_user_defines/` and add a dependency on that project in the mentioned test. The integration test already covers `flutter run`, `flutter test`, and `flutter build`.
Automated Flutter integration test suites
Each suite consists of either a complete Flutter app and a flutter_driver
specification that drives tests from the UI, or a native app that is meant to
integrate with Flutter for testing.
Intended for use with devicelab tests.
If you want to run a driver test locally, to debug a problem with a test, you can use this command from the appropriate subdirectory:
flutter drive -t <test> --driver <driver>
For example:
flutter drive -t lib/keyboard_resize.dart --driver test_driver/keyboard_resize_test.dart
New tests require new CI runner
Adding code to this directory will not automatically cause it to be run by any already existing ci tooling. This directory is intentinally a "choose your own adventure" piece of tooling.