mirror of
https://github.com/bazel-contrib/bazel-lib
synced 2024-11-28 21:33:48 +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
|