Run one test file with verbose output, or filter tests?
IntermediateProductionRapid-Fire Commands
Answer
terraform test -verbose
terraform test -filter=tests/vpc.tftest.hcl
terraform test -var="env=test"
Test files live in the module root or tests/ and need terraform init first.
More on Rapid-Fire Commands
Format all files recursively and fail if anything needs formatting?BeginnerList every resource address under one module?BeginnerShow the attributes of one resource in state?BeginnerPlan with a specific var file and write the plan?BeginnerValidate configuration and get machine-readable output?BeginnerApply a saved plan and inspect it as JSON first?Beginner