Hi Group,
I am working on setting up a Rakefile for running all our tests, and want to only use one Rakefile for all cookbooks, to avoid duplication across our 40+ cookbooks. I have all the tests working, such as Tailor, Foodcritic, knife syntax test, but test kitchen isn’t working. Because I have only one Rakefile, it is located under chef-repo/cookbooks/Rakefile. The test kitchen .kitchen.yml file is in each cookbook, and so on the command line I am able to reference it successfully from the chef-repo/cookbooks/ directory by running KITCHEN_YAML=#{$COOKBOOK}/.kitchen.yml kitchen test --concurrency --destroy=always. When I put the same command into my Rakefile (below) it is not working. Any ideas?
desc 'Run Test Kitchen'
task :kitchen_test do
print_header("About to run Test Kitchen on #{$COOKBOOK}")
sh "KITCHEN_YAML=#{$COOKBOOK}/.kitchen.yml kitchen test --concurrency --destroy=always"
end
Failure:
KITCHEN_YAML=dist_modeling/.kitchen.yml kitchen test --concurrency --destroy=always
rake aborted!
Command failed with status (127): [KITCHEN_YAML=dist_modeling/.kitchen.yml ki...]
Any suggestions are greatly appreciated!
Thanks,
Eric Krupnik
Associate Software Engineer
Copyright Clearance Center
222 Rosewood Drive
Danvers, MA 01923
978.646.2845
ekru...@copyright.com
www.copyright.com