vagrant/tasks/acceptance.rake

23 lines
468 B
Ruby
Raw Normal View History

namespace :acceptance do
desc "shows components that can be tested"
task :components do
exec("vagrant-spec components --config=vagrant-spec.config.rb")
end
desc "runs acceptance tests"
task :run do
args = [
"--config=vagrant-spec.config.rb",
]
if ENV["COMPONENTS"]
args << "--components=\"#{ENV["COMPONENTS"]}\""
end
command = "vagrant-spec test #{args.join(" ")}"
puts command
puts
exec(command)
end
end