Test Kitchen in Chef

Test Kitchen is a framework that allows us to deploy our code in a isolated environment where it can be tested.

This environment could be a local system - maybe through virtualization technology like VirtualBox and Vagrant, Docker, Cloud Providers and so on.

Test Kitchen comes preinstalled with ChefDK.

The test/ directory inside your cookbook is for integration testing with Test Kitchen. Inside of this dir the .kitchen.yml file is the Test Kitchen configuration file. It contains information about how to create the virtual machine (driver), we have also verifiers (it runs Chef on this actual testing) and provisioners (executes tests against the actual testing environment - the inspec platform is used), platorm section and suits section (is how are actually going to run a particular runlist on the testing environment).