This cookbook includes support for running tests via Test Kitchen. This has some requirements:
- You must be using the Git repository, rather than the downloaded cookbook from the Chef Community Site.
- You must have Vagrant 1.1+ installed.
- You must have a Ruby 1.9.3+ environment.
Once the above requirements are met, install the additional requirements:
Install the Berkshelf plugin for Vagrant, and Berkshelf to your local Ruby environment:
$ vagrant plugin install vagrant-berkshelf
$ gem install berkshelf
Install Test Kitchen:
gem install test-kitchen --pre
Install the Vagrant driver for Test Kitchen:
gem install kitchen-vagrant
Once the above are installed, you should be able to run Test Kitchen:
kitchen list
kitchen test