fx set [product].[board] --with //bundles:tests
fx serve
fx run-test camera_full_on_device_test
Note: most on-device tests require the camera to be physically enabled (i.e. the device must not be muted). If a test determines that the device may be muted, a warning will be displayed and the test will be skipped.
fx shell tiles_ctl start
fx shell tiles_ctl add fuchsia-pkg://fuchsia.com/camera_demo#meta/camera_demo.cmx
You can follow the directions above to test on the device, and run: fx run-test camera_full_test
Or:
fx set workstation.x64 --with //bundles:tests
fx build
fx serve
fx run -k -N
fx run-test camera_full_test
Single components can be tested by following the instructions above, and adding a -t test_name
to the end. For example:
fx run-test camera_full_test -t gdc-task