# Test-kitchen workflow

**URL:** <https://discourse.chef.io/t/test-kitchen-workflow/3032>\
**Category:** Chef Infra (archive)\
**Created:** [August 20, 2012, 7:44am UTC](https://discourse.chef.io/t/test-kitchen-workflow/3032 "2012-08-20T07:44:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Torben\_Knerr](https://avatars.discourse-cdn.com/v4/letter/t/ba8739/32.png) [@Torben\_Knerr](https://discourse.chef.io/u/Torben_Knerr)\
**Post date:** [August 20, 2012, 7:44am UTC](https://discourse.chef.io/t/test-kitchen-workflow/3032/1 "2012-08-20T07:44:49Z")

</div>

Ohai Chefs,

trying to understand what kind of tests are executed in which phase,  
and when the Vagrant VMs are started, I have tried to write down the  
workflow of the test runner in pseudo code.

Is this roughly what it does?

for each cookbook in Kitchenfile  
-\> run “preflight” commands (default: knife cookbook test & foodcritic)  
-\> run “script” commands (default: rspec spec)  
for each “platform” and “version” in Kitchenfile  
for each “configuration”  
-\> spin up a vagrant VM and converge node,  
run minitest-chef-handler at the end of the chef run  
-\> run cucumber features tagged with

Cheers,  
Torben
