Skip to content

Commit bd89ca2

Browse files
docs: update testing commands and add ts test guidance
1 parent 1912809 commit bd89ca2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

AGENTS.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ bun run fmt:ci # Check formatting (CI mode)
2323

2424
```bash
2525
# Test all modules with .tftest.hcl files
26-
./scripts/terraform_test_all.sh
26+
bun run test
2727

2828
# Test specific module (from module directory)
2929
terraform init -upgrade
@@ -96,6 +96,7 @@ tags: ["tag1", "tag2"]
9696
### Module Testing
9797

9898
- Every module MUST have `.tftest.hcl` test files
99+
- Optional `main.test.ts` files for container-based testing or complex business logic validation
99100
- Tests use Docker containers with `--network=host` flag
100101
- Linux required for testing (Docker Desktop on macOS/Windows won't work)
101102
- Use Colima or OrbStack on macOS instead of Docker Desktop
@@ -156,7 +157,7 @@ Use semantic versioning for modules:
156157
### Testing Workflow
157158

158159
- All modules must pass `terraform test`
159-
- Use `./scripts/terraform_test_all.sh` for comprehensive testing
160+
- Use `bun run test` for comprehensive testing
160161
- Format code with `bun run fmt` before submission
161162
- Manual testing recommended for templates
162163

0 commit comments

Comments
 (0)