Skip to content

Latest commit

 

History

History
41 lines (35 loc) · 896 Bytes

TESTING.md

File metadata and controls

41 lines (35 loc) · 896 Bytes

Testing

Prerequisites

We recommend to install [ChefDK] to your development environment. It provides all tools used in the process of testig this cookbook.

Integration

Requirements

  • [Vagrant]
  • [VirtualBox] (other Vagrant provider may work but are not tested)

Run Tests

To run all test suits on all platforms:

kitchen test

Instead of running all integration tests, you can specify each suite and platform to create the instances. All steps can be run separately.

kitchen create default-ubuntu-1404
kitchen converge default-ubuntu-1404
kitchen setup default-ubuntu-1404
kitchen verify default-ubuntu-1404
kitchen destroy default-ubuntu-1404

List existing instances

kitchen list

Lint

/opt/chefdk/bin/chef exec cookstyle

Foodcritic

Linting is done with [Foodcritic]:

/opt/chefdk/bin/chef exec rake foodcritic .