Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.aspect.build/llms.txt

Use this file to discover all available pages before exploring further.

Documentation for @bazel_lib@v3.2.0 View source
A test rule that invokes the Bash Automated Testing System. For example, a bats_test target containing a single .bat and basic configuration:
bats_test(
    name = "my_test",
    size = "small",
    srcs = [
        "my_test.bats",
    ],
    data = [
        "data.bin",
    ],
    env = {
        "DATA_PATH": "$(location :data.bin)",
    },
    args = ["--timing"],
)

Rule: bats_test

Kind: Test rule

Attributes

name
name
required
A unique name for this target.
srcs
list of labels
default:"[]"
Test files
data
list of labels
default:"[]"
Runtime dependencies of the test.
env
dictionary: String → String
default:"{}"
Environment variables of the action.Subject to $(location) and “Make variable” substitution.