Sauce Labs
Blog

Chef

Integration Testing Chef Cookbooks With Serverspec

Writing a server integration test using the Serverspec testing framework to verify your server configuration helps to ensure the consistency and dependability of Chef code as it is being developed. Serverspec tests will prove that the correct packages were installed, configured correctly, and tested on the various platforms (CentOS, Ubuntu, Windows, and more). This article walks you through the [...]

Unit Testing Chef Cookbooks with ChefSpec
Posted by Greg Sypolt in ChefDevOpsGuest Blog Posts

I recently had the opportunity to get involved with Chef cookbook development, and begin learning how to write some tests for infrastructure code by using various testing frameworks. One critical aspect of developing any code is writing unit tests. We use ChefSpec - it's a unit testing framework for testing Chef cookbooks. ChefSpec is simple to write. It reads a whole lot easier than other unit [...]

Free Trial

Get access to a free 14-day trial version, or contact Sales for more information.