tree: 42f369b375ffded1e8dc9318a670cec29fa46b9a
  1. cc_tests/
  2. go_tests/
  3. host_test_data_tests/
  4. py_tests/
  5. rust_tests/
  6. BUILD.bazel
  7. host_go_test.bzl
  8. host_py_test.bzl
  9. host_rustc_test.bzl
  10. host_test.bzl
  11. host_test_data.bzl
  12. README.md
build/bazel/host_tests/README.md

//build/bazel/host_tests is the root of all host Bazel tests for the Fuchsia build. These tests should all be runnable using the following command:

fx bazel test --config=host //build/bazel/host_tests

To add another host test to the build, add its label to the tests attribute of //build/bazel/host_tests/BUILD.bazel. Use test_suite()to group related tests (usingfilegroup()` will not work).

Host tests must be wrapped or defined using the host_test() rule to be visible to fx test and botanist. Such targets are also Bazel tests that can be run directly with fx bazel test, but this will never be done in production.

See https://fxbug.dev/349341932.