Chapter 7. Test-Driven Development
In this chapter, we're going to delve into the Test-driven Development model, showing how to maximize development efforts and quickly deliver highly functional and well-tested environments. The reader will learn how to transform their model for Chef from one where cookbooks are code to one, where cookbooks are artifacts, with test practices built into both models. Initially, it may seem difficult and time consuming to build the skills and habits of test-driven development. However, once the skills and habits are acquired, the development cycle becomes accelerated and the resulting infrastructure is much more stable. What's more, DevOps Engineers will have greater certainty that the infrastructure will be fully functional. It will no longer be necessary to do ad hoc tests and spot checks on infrastructure deployed into production environments. The infrastructure code will be continually tested through the development process, and the...