Skip to content

Commit 4d5c843

Browse files
author
iru
authored
doc: kitchen test
example on howto run a specific kitchen test on local
1 parent 53a33c4 commit 4d5c843

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

CONTRIBUTE.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,15 @@ Implemented vía **Terraform Kitchen** | https://newcontext-oss.github.io/kitche
6767

6868
- Kitchen configuration can be found in `/.kitchen.yml`
6969
- Under `/test/fixtures` you can find the targets that will be tested. Please keep this as similar as possible to the Terraform Registry Modules examples.
70+
- AWS_PROFILE configuration is required to access the [TF s3 state backend](#terraform-backend)
7071

7172
**Running Kitchen tests locally**
7273

7374
Ruby 2.7 is required to launch the tests.
7475
Run `bundle install` to get kitchen-terraform bundle.
7576
Cloud Provider credentials should be configured locally.
7677
```shell
77-
# launch the tests, in other words, it will run `terraform apply`
78+
# launch all the tests, in other words, it will run `terraform apply`
7879
$ bundle exec kitchen converge
7980

8081
# will destroy test infrastructure, in short, it will run `terraform destroy`
@@ -83,6 +84,9 @@ $ bundle exec kitchen destroy
8384
# run all the workflow. In first place, it will run an `apply`. Then, if and only if the `apply` works it will destroy the infrastructure.
8485
$ bundle exec kitchen tests
8586

87+
# run one specific test
88+
$ bundle exec kitchen test "single-account-k8s-aws"
89+
8690
```
8791

8892
### Terraform Backend

0 commit comments

Comments
 (0)