Update CONTRIBUTING.md

This commit is contained in:
Ludovico Magnocavallo 2022-06-07 07:52:33 +02:00 committed by GitHub
parent e792adf13b
commit 4c5a027c3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -602,9 +602,9 @@ Our testing approach follows a simple philosophy: we mainly test to ensure code
This makes testing very simple, as a successful `terraform plan` run in a test case is often enough. We only write more specialized tests when we need to check the output of complex transformations in `for` loops.
As our testing needs are very simple, we also wanted to reduce the friction required to write new tests as much as possible: our tests are written in Python, and use `pytest` which is a the-facto standard. We adopted this approach instead of others (Inspec/Kitchen, Terratest) as it allows writing simple functions as test units using Python which is simple and widely known.
As our testing needs are very simple, we also wanted to reduce the friction required to write new tests as much as possible: our tests are written in Python, and use `pytest` which is the standard for the language. We adopted this approach instead of others (Inspec/Kitchen, Terratest) as it allows writing simple functions as test units using Python which is simple and widely known.
The last piece of our testing framework is our `tftest` library, which wraps the Terraform executable and returns familiar data structures for most commands.
The last piece of our testing framework is our [`tftest`](https://pypi.org/project/tftest/) library, which wraps the Terraform executable and returns familiar data structures for most commands.
##### Testing end to end examples