Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 725 Bytes

CONTRIBUTING.md

File metadata and controls

28 lines (19 loc) · 725 Bytes

Contributing

To create a new module, clone this repository and run:

./new.sh MODULE_NAME

Testing a Module

A suite of test-helpers exists to run terraform apply on modules with variables, and test script output against containers.

Reference existing *.test.ts files for implementation.

# Run tests for a specific module!
$ bun test -t '<module>'

You can test a module locally by updating the source as follows

module "example" {
  source = "git::https://github.com/<USERNAME>/<REPO>.git//<MODULE-NAME>?ref=<BRANCH-NAME>"
}

Note: This is the responsibility of the module author to implement tests for their module. and test the module locally before submitting a PR.