Skip to content

Latest commit

 

History

History
44 lines (28 loc) · 1.36 KB

TESTING.md

File metadata and controls

44 lines (28 loc) · 1.36 KB

This cookbook uses a variety of testing components:

Prerequisites

You can install the Chef Development Kit (Chef-DK) to more easily install the above components.

You must also have Vagrant and VirtualBox installed:

Development

  1. Clone the git repository from GitHub:

  2. Install the dependencies using bundler:

    • chef exec bundle install --path ../vendor
  3. Create a branch for your changes:

    • git checkout -b my_bug_fix
  4. Make any changes

  5. Write tests to support those changes. It is highly recommended you write both unit and integration tests.

  6. Run the tests:

    • chef exec bundle exec rspec
    • chef exec bundle exec foodcritic .
    • chef exec bundle exec rubocop
    • chef exec bundle exec kitchen test
  7. Assuming the tests pass, open a Pull Request on GitHub

For more information, see the cookbook's Contribution Guidelines