# File lib/chef/knife/cookbook_test.rb, line 41
      def run 
        if config[:cookbook_path]
          Chef::Config[:cookbook_path] = config[:cookbook_path]
        else
          config[:cookbook_path] = Chef::Config[:cookbook_path]
        end

        if config[:all]
          cl = Chef::CookbookLoader.new
          cl.each do |key, cookbook|
            test_cookbook(key)
          end
        else
          @name_args.each do |cb|
            test_cookbook(cb)
          end
        end
      end