Testing your code

Best practices for software development include testing your code. We have been testing whether Terraform is delivering the required outputs by validating that our resources exist in the AWS console. The automation of tests gives us a repeatable way to confirm that our product is behaving in the expected way. However, it is important to test non-functional requirements as well. Product security and availability are two aspects that affect every task. In addition to reducing toil through continuous builds and deployment of our code, we must ensure code quality. To this effect, we will create another CodeBuild project using the open source Sonar (https://www.sonarqube.org/) project. 

You need to create an account at SonarCloud ...

Get Implementing Cloud Design Patterns for AWS - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.