Image for post
Image for post

Within this article, I aim to quickly outline and inform you of some of the different forms of testing that can be implemented on your Terraform code.

We will cover:

  • Static Testing/Analysis
  • Linters
  • Basic Security Testing
  • Unit Testing
  • Integration Testing
  • Property Testing
  • E2E Testing
  • Example code and links

Static Testing/Analysis
What is Static testing?
Static testing is a software testing technique by which we can check the defects in software without actually executing it. Often you can find small issues that you may have missed when eyeballing your code.

What are the benefits of static testing/analysis?

  • Fast.
  • Stable.
  • No need to deploy resources. …

About

Martyn Smith

I am a driven and passionate DevOps consultant who likes to learn lots of different things, from IT to French.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store