I have been playing more w/ simple_cuke but am running into some roadblocks from my complete ignorance of cucumber.Feature: ark dumpScenario: File should be in its proper placeWhen I run `ls /usr/local/foobar/`Then the output should match /jaxrpc.jar/
--
You received this message because you are subscribed to the Google Groups "chef-testing" group.
To post to this group, send email to chef-t...@googlegroups.com.
To unsubscribe from this group, send email to chef-testing...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/chef-testing?hl=en.
Then do something like this?:
# Search through all cookbooks in the run list for tests
node[:recipes].each do |recipe|
# recipes is actually a list of cookbooks and recipes with :: as a delimiter
cookbook_name, recipe_name = recipe.split('::')
recipe_name = "default" if recipe_name.nil?
remote_file "tests-#{cookbook_name}-#{recipe_name}" do
source "tests/minitest/#{recipe_name}.rb"
cookbook cookbook_name
path "#{node[:minitest][:path]}/#{cookbook_name}"
purge true
ignore_failure true
end
end
> Do we really need 'files/default' ?
Chef is pretty specific about what folders get to remain part of a
cookbook. Even 'knife cookbook site share' uses the
Chef::CookbookLoader to make a tarball, which ultimately means a root
directory of 'tests' is not included in the upload to the community.
Uploading the cookbook to Hosted Chef will lose new top level
directories as well.
I suppose someone could extend the 'root_files' type therein to
support directories, but this would have to be done and I didn't want
to wait for this support to start working on performing integration
tests on cookbooks.
Bryan
We're currently implementing both in our internal project for
integration testing the Opscode cookbooks. Minitest checks the little
bits get set on the system and cucumber ensures that the service works
correctly from outside.
Bryan