tree: 589b386d5c26f76bd041b06502d99c46c8e08eee [path history] [tgz]
  1. activity/
  2. factory-reset-handler/
  3. focus/
  4. media-buttons/
  5. mouse/
  6. text-input/
  7. touch/
  8. virtual-keyboard/
  9. web-touch-input/
  10. BUILD.gn
  11. METADATA.textproto
  12. OWNERS
  13. README.md
src/ui/tests/integration_input_tests/README.md

Integration Input Tests

This collection of tests exercises the input dispatch paths in core components, such as Scenic and Input Pipeline (as integrated as a part of Scene Manager). They are intended to be fairly minimal, free of flakiness, and standalone - the entire test is in one file.

Building tests

To build and run the tests for core-based products (e.g. core, astro, or sherlock), include the integration_input_tests test package in your build args either directly:

fx set ... \
  --with //src/chromium:web_engine \
  --with //src/ui/tests/integration_input_tests

or transitively:

fx set ... \
  --with //src/chromium:web_engine \
  --with //bundles/tests

To build and run the tests for workstation-based products, include the workstation_tests test package in your build args directly (fx set ... --with //src/ui/tests/integration_input_tests:workstation_tests).

Note: Workstation tests are not built transitively via //bundles/tests, so exercising all tests in this directly requires including both types of test targets described above.

Running tests

To run these, we can use fx test with the name of the corresponding fuchsia_test_package name defined in the test's BUILD:

fx test factory-reset-test
fx test integration_input_tests
fx test touch-input-test
fx test text-input-test
fx test mouse-input-test