Summary

RSpec with ChefSpec extensions provides us with incredibly powerful tools to test our cookbooks and recipes. You have seen how to develop basic ChefSpec tests for your recipes, organize your spec tests inside of your cookbook, execute and analyze the output of your spec tests, and simulate the execution of your recipes across multiple platforms.

In future chapters, we will learn some more advanced testing mechanisms such as mocking and stubbing external services such as search and data bags. Adding testing to your development cycle allows you to feel confident in the correctness of your recipes, which is a critical step towards automating the management of your infrastructure.

Now, let's take a look at how we will build a cookbook to complement ...

Get Chef: Powerful Infrastructure Automation 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.