tree: 5f4792bf688b38678815a1b29d26ee543b1f9766 [path history] [tgz]
  1. cmx_runner/
  2. debug_data/
  3. debug_data_processor/
  4. fidl/
  5. meta/
  6. src/
  7. tests/

test manager

Reviewed on: 2019-11-06

Test Manager runs v2 tests natively and returns result. This would eventually run directly under component manager and host side will talk to this tool to run v2 tests on device.


Test Executor should be included test build of Fuchsia, but if missing can be added to builds by including --with //src/sys/test_manager to the fx set invocation.


Current implementation run echo v2 tests. In future we will extend it to run any test.

$ fx shell run fuchsia-pkg:// fuchsia-pkg://


Tests for this project are available in the tests folder.

$ fx test test_manager_tests

Source layout

The entrypoint is located in src/ Tests live in tests/.


When making changes to test manager or its children, developers want to run their tests against latest version of code. The following section highlights various scenarios and action to take to load the latest version of changes:

Changes to test manager code

When changes are made to test manager code, they can be loaded by first killing test manager on the device and then running the test.

fx shell killall

Changes to test manager's child code

When changes are made to test manager‘s static child’s code, developer first needs to kill that child and then run their test. For eg if changes are made to gtest_runner code:

fx shell killall

Changes to manifest

When changes are made to test manager or its static child manifest file, the device should be rebooted before the changes can be loaded.

fx reboot

Changes to a test

When changes are made to a test, the test can be executed again, and the latest version will be loaded and executed.

fx test <test_url>