opentofu_test
Rules
opentofu_test
load("@rules_terraform//opentofu:opentofu_test.bzl", "opentofu_test")
opentofu_test(name, lock, root)
Runs opentofu's native HCL test framework (opentofu test) on the root
module as a Bazel test. Test cases live in .tftest.hcl files. Fully
hermetic — the .terraform directory is assembled by the init aspect from
Bazel-managed deps.
Bazel --test_arg values are intentionally ignored so the surface stays
predictable — every run executes the module's .tftest.hcl files.
ATTRIBUTES