mirror of
https://github.com/bazel-contrib/bazel-lib
synced 2024-12-02 10:15:22 +00:00
26 lines
522 B
Python
26 lines
522 B
Python
"""A test rule that invokes the [Bash Automated Testing System](https://github.com/bats-core/bats-core).
|
|
|
|
For example, a `bats_test` target containing a single .bat and basic configuration:
|
|
|
|
```starlark
|
|
bats_test(
|
|
name = "my_test",
|
|
size = "small",
|
|
srcs = [
|
|
"my_test.bats",
|
|
],
|
|
data = [
|
|
"data.bin",
|
|
],
|
|
env = {
|
|
"DATA_PATH": "$(location :data.bin)",
|
|
},
|
|
args = ["--timing"],
|
|
)
|
|
```
|
|
"""
|
|
|
|
load("//lib/private:bats.bzl", _bats_test = "bats_test")
|
|
|
|
bats_test = _bats_test
|