Skip to content

Latest commit

 

History

History
45 lines (30 loc) · 1.32 KB

TESTING.md

File metadata and controls

45 lines (30 loc) · 1.32 KB

This cookbook the following testing components:

Prerequisites

To develop on this cookbook, you must have a sane Ruby 2.5+ environment.

You should have ChefDK stable release installed

You must also have either Vagrant and VirtualBox installed, or Docker:

Using vagrant, you should install the vagrant-berkshelf plugin:

$ vagrant plugin install vagrant-berkshelf

Development

  1. Clone the git repository from GitHub:

     $ git clone git@github.com:t0rrant/cookbook-shifter.git
    
  2. Install the dependencies using bundler:

     $ bundle install
    
  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:

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