Skip to content

Latest commit

 

History

History
28 lines (16 loc) · 942 Bytes

TESTING.md

File metadata and controls

28 lines (16 loc) · 942 Bytes

This cookbook includes support for running tests via Test Kitchen (1.0). This has some requirements.

  1. You must be using the Git repository, rather than the downloaded cookbook from the Chef Community Site.
  2. You must have Vagrant 1.1 installed, and no other previous versions of Vagrant hanging around.
  3. You must have a "sane" Ruby 1.9.3 environment.

Once the above requirements are met, install the additional requirements:

Install the berkshelf plugin for vagrant, use version 1.0.6.

vagrant plugin install berkshelf-vagrant --plugin-version 1.0.6

Install berkshelf to your local Ruby environment.

gem install berkshelf

Install Test Kitchen 1.0 (unreleased yet, use the alpha / prerelease version).

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