2012-04-21 18:24:14 +00:00
|
|
|
#!/usr/bin/env rake
|
|
|
|
require "bundler/gem_tasks"
|
2012-04-28 18:44:42 +00:00
|
|
|
require 'rspec/core/rake_task'
|
|
|
|
require 'cucumber/rake/task'
|
2012-07-27 23:26:17 +00:00
|
|
|
require 'ci/reporter/rake/rspec'
|
2012-04-28 18:44:42 +00:00
|
|
|
|
|
|
|
RSpec::Core::RakeTask.new('spec') do |t|
|
|
|
|
t.rspec_opts = '--color --fail-fast'
|
|
|
|
end
|
|
|
|
|
2012-04-28 18:56:52 +00:00
|
|
|
|
2012-08-23 03:45:22 +00:00
|
|
|
Cucumber::Rake::Task.new('cucumber')
|
2012-04-28 18:56:52 +00:00
|
|
|
|
2012-08-23 03:45:22 +00:00
|
|
|
namespace :cucumber do
|
|
|
|
Cucumber::Rake::Task.new('aws') do |t|
|
|
|
|
t.cucumber_opts = '-p aws'
|
2012-04-28 18:56:52 +00:00
|
|
|
end
|
|
|
|
|
2012-08-23 03:45:22 +00:00
|
|
|
Cucumber::Rake::Task.new('openstack') do |t|
|
|
|
|
t.cucumber_opts = '-p openstack'
|
2012-07-14 04:44:48 +00:00
|
|
|
end
|
|
|
|
|
2012-08-23 03:45:22 +00:00
|
|
|
Cucumber::Rake::Task.new('wip') do |t|
|
|
|
|
t.cucumber_opts = '-p wip'
|
2012-04-28 18:56:52 +00:00
|
|
|
end
|
2012-04-28 18:44:42 +00:00
|
|
|
end
|
|
|
|
|
2012-04-28 23:13:50 +00:00
|
|
|
desc 'Run the basic test suite'
|
2012-08-23 03:45:22 +00:00
|
|
|
task :test => ['spec', 'cucumber']
|
2012-04-28 18:44:42 +00:00
|
|
|
|
2012-04-28 22:10:57 +00:00
|
|
|
namespace :test do
|
2012-08-23 03:45:22 +00:00
|
|
|
desc 'Run all the tests, including the slow (AWS-based) integration tests'
|
|
|
|
task :all => ['spec', 'cucumber', 'cucumber:aws']
|
2012-04-28 22:10:57 +00:00
|
|
|
end
|
|
|
|
|
2012-05-17 18:40:59 +00:00
|
|
|
|
|
|
|
task :default => :test
|