Skip to content

Latest commit

 

History

History
45 lines (33 loc) · 1.59 KB

TESTING.md

File metadata and controls

45 lines (33 loc) · 1.59 KB

This cookbook uses a variety of testing components:

Prerequisites

To develop on this cookbook, you must have a sane Ruby 1.9+ environment. Given the nature of this installation process (and it's variance across multiple operating systems), we will leave this installation process to the user.

You must also have bundler installed:

$ gem install bundler

You must also have Vagrant and VirtualBox installed:

Once installed, you must install the vagrant-berkshelf plugin:

$ vagrant plugin install vagrant-berkshelf

Development

  1. Clone the git repository from GitHub:
  1. Install the dependencies using bundler:
  • $ bundle install
  1. Create a branch for your changes:
  • $ git checkout -b my_bug_fix
  1. Make any changes
  2. Write tests to support those changes.
  3. Run the tests:
  • bundle exec rspec
  • bundle exec foodcritic .
  • bundle exec rubocop
  • bundle exec kitchen test
  1. Assuming the tests pass, open a Pull Request on GitHub
  2. Open a JIRA ticket for this component, linking the JIRA ticket to the Pull Request and visa versa.
  3. Mark the JIRA ticket as "Fix Provided"

For more information, see Chef's Contribution Guidelines.