Sauce Labs
Blog

Chef

Using Test-Kitchen for Local Testing
Posted by Greg Sypolt in ChefGuest Blog PostsSoftware Development & Testing

Test Kitchen is used mainly for integration testing for your Chef Cookbooks, but it can also be used to isolate application bugs in a local environment. It is the best method to test and debug your application or infrastructure code locally using virtual technologies. Test Kitchen can converge Chef cookbooks across various combinations of platforms (operating systems). The most important aspect [...]

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.