Files
rk35xx-android14/external/bazel-skylib/docs/build_test_doc.md
T
hmz007 36ed224bac Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a)
Signed-off-by: hmz007 <hmz007@gmail.com>
Change-Id: Ib87fdbe7a0be7dc961af3500fe9ea4589a127f9f
2024-10-29 18:12:02 +08:00

1.2 KiB
Executable File

A test verifying other targets build as part of a bazel test

build_test

build_test(name, targets, kwargs)

Test rule checking that other targets build.

This works not by an instance of this test failing, but instead by the targets it depends on failing to build, and hence failing the attempt to run this test.

Typical usage:

  load("@bazel_skylib//rules:build_test.bzl", "build_test")
  build_test(
      name = "my_build_test",
      targets = [
          "//some/package:rule",
      ],
  )

PARAMETERS

Name Description Default Value
name The name of the test rule. none
targets A list of targets to ensure build. none
kwargs The <a href="https://docs.bazel.build/versions/main/be/common-definitions.html#common-attributes-tests">common attributes for tests</a>. none