tests: - name: example-test type: script args: commands: - echo "Success!"
The default behavior if a tests fails is to continue running the rest of the tests and return a non-zero exit code at the end.
This behavior can modified to allow testing to continue by adding
required: true to the test definition.
This will terminate execution if test fails and no further tests will be run.
tests: - name: hello-world type: script required: true args: commands: - echo "Hello World!" && exit 1
Built-in Test Types¶
Validate CloudFormation yaml/json templates against the CloudFormation spec and additional checks. Includes checking valid values for resource properties and best practices.
tests: - name: cfn-lint-example type: cfn-lint
Executes a list of provided commands. Each command is run in its own subprocess.
Commands are passed into the test using the
tests: - name: hello-world type: script args: commands: - echo "Hello World!"
A linter for YAML files. yamllint does not only check for syntax validity, but for weirdnesses like key repetition and cosmetic problems such as lines length, trailing spaces, indentation, etc.
.yamllint file can be placed at in the same directory as the
Runway config file to customize the linter or, the Runway
provided template will be used.
tests: - name: yamllint-example type: yamllint