tree: 97d506a5abd987242ef0162076815f2faae8a66f [path history] [tgz]
  1. observatory/
  2. .gitignore
  3. assets_test.dart
  4. BUILD.gn
  5. canvas_test.dart
  6. channel_buffers_test.dart
  7. codec_test.dart
  8. color_filter_test.dart
  9. color_test.dart
  10. compositing_test.dart
  11. dart_test.dart
  12. encoding_test.dart
  13. fragment_shader_test.dart
  14. geometry_test.dart
  15. gesture_settings_test.dart
  16. goldens.dart
  17. gpu_test.dart
  18. gradient_test.dart
  19. http_allow_http_connections_test.dart
  20. http_disallow_http_connections_test.dart
  21. image_descriptor_test.dart
  22. image_dispose_test.dart
  23. image_events_test.dart
  24. image_filter_test.dart
  25. image_resize_test.dart
  26. image_shader_test.dart
  27. image_test.dart
  28. impeller_enabled.dart
  29. isolate_name_server_test.dart
  30. isolate_test.dart
  31. lerp_test.dart
  32. locale_test.dart
  33. mask_filter_test.dart
  34. painting_test.dart
  35. paragraph_builder_test.dart
  36. paragraph_test.dart
  37. path_test.dart
  38. picture_test.dart
  39. platform_dispatcher_test.dart
  40. platform_isolate_shutdown_test.dart
  41. platform_isolate_test.dart
  42. platform_view_test.dart
  43. plugin_utilities_test.dart
  44. pubspec.yaml
  45. README.md
  46. semantics_test.dart
  47. serial_gc_test.dart
  48. serialized_test_suite.dart
  49. shader_test_file_utils.dart
  50. spawn_helper.dart
  51. spawn_test.dart
  52. stringification_test.dart
  53. task_order_test.dart
  54. text_test.dart
  55. window_test.dart
testing/dart/README.md

Dart UI Tests

The tests in this directory are written in Dart and run on the Flutter engine, typically testing functionality that is not easily tested with C++ tests or is best tested at a higher level (i.e. importing dart:ui).

Running the tests

The simplest way to run these tests is using run_tests.py:

./testing/run_tests.py --type=dart

Or, to run a specific test, provide the base file name as --dart-filter:

./testing/run_tests.py --type=dart --dart-filter=image_filter_test.dart

Note that the tests are compiled as Dart kernel files, and not run from source, if any changes are made to the tests, you will need to recompile them before running the tests:

# At the time of this writing, 'et build' did not work with Dart targets.
# Instead, use the following command to build the tests.

ninja -C ../out/host_debug_unopt_arm64 compile_image_filter_test.dart

To view the outputted golden files locally, you‘ll need to open the generated output folder, which will vary based on both your current target architecture and the test suite you’re running.

For example, for the above test on host_debug_unopt_arm64:

open ../out/host_debug_unopt_arm64/gen/skia_gold_image_filter_test.dart_iplr