Add and remove runlist in kitchenci


#1

I am using KitchenCI framework for testing of the cookbooks. I need to run the same cookbook multiple times with different recipes added to run-list. How do we do this in kitchenci ?


#2

Hi,

You can add multiple suites to your .kitchen.yml file for doing so. See the docs here https://kitchen.ci/docs/getting-started/adding-suite .


#3

@suchitra if you are intend to run the same cookbook from multiple recipe, i would recommend to avoid adding the dependency recipe in the run_list rather you can call directly call the recipe from other recipe like include_recipe 'base' and declare the dependency cookbook in your metadata.rb.

In such way that you don’t have to explicitly call the recipe from run_list and also you will have an ability to run the recipe in particular order or use-case.