2011-11-13 20:37:04 +00:00
|
|
|
namespace :acceptance do
|
2013-12-05 22:24:10 +00:00
|
|
|
desc "shows components that can be tested"
|
|
|
|
task :components do
|
|
|
|
exec("vagrant-spec components --config=vagrant-spec.config.rb")
|
2011-11-13 21:37:30 +00:00
|
|
|
end
|
|
|
|
|
2013-12-05 22:24:10 +00:00
|
|
|
desc "runs acceptance tests"
|
|
|
|
task :run do
|
|
|
|
args = [
|
|
|
|
"--config=vagrant-spec.config.rb",
|
|
|
|
]
|
2011-11-13 20:37:04 +00:00
|
|
|
|
2013-12-05 22:24:10 +00:00
|
|
|
if ENV["COMPONENTS"]
|
|
|
|
args << "--components=\"#{ENV["COMPONENTS"]}\""
|
2011-11-13 20:37:04 +00:00
|
|
|
end
|
|
|
|
|
2013-12-05 22:24:10 +00:00
|
|
|
command = "vagrant-spec test #{args.join(" ")}"
|
|
|
|
puts command
|
|
|
|
puts
|
|
|
|
exec(command)
|
2011-11-13 20:37:04 +00:00
|
|
|
end
|
|
|
|
end
|