Skip to content

terraform-test-files

Tracked paths ending in .tftest.hcl or .tftest.json are prohibited, case-insensitively.

Why

A separate Terraform-native test harness duplicates setup and review conventions; one shared rendered-plan, provider, or runtime validation path keeps infrastructure checks discoverable and consistent.

Fix

Delete the Terraform-native test file and move the durable assertion into shared rendered-plan, provider, or runtime validation.

Examples

Terraform-native test file

Before — rejected · error
iac/tests/routing.tftest.hcl
After — preferred
shared rendered-plan validation