Seth Vargo 1/13/2013

Unit Testing Chef Cookbooks

Read Original

This technical article explains the philosophy and practice of unit testing Chef infrastructure code. It demonstrates using ChefSpec and Fauxhai to test that a Chef cookbook correctly instructs Chef to perform operations (like installing packages or creating templates), rather than testing the end state. The piece clarifies the value of unit tests for catching regressions and errors during refactoring before code reaches production.

Unit Testing Chef Cookbooks

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week