Add cucumber profiles and clean up the Rakefile a bit

This commit is contained in:
R. Tyler Croy 2012-08-22 20:45:22 -07:00
parent 18c64cbd5c
commit 41b357060f
3 changed files with 21 additions and 12 deletions

2
.gitignore vendored
View File

@ -18,3 +18,5 @@ tmp
.blimpy.d
.rvmrc
Blimpyfile
features/report.html
features/reports

View File

@ -9,28 +9,28 @@ RSpec::Core::RakeTask.new('spec') do |t|
end
Cucumber::Rake::Task.new('cucumber')
namespace :cucumber do
cucumber_opts = '--color --format progress --tags ~@wip'
Cucumber::Rake::Task.new('basic') do |t|
t.cucumber_opts = cucumber_opts + ' --tags ~@slow'
end
Cucumber::Rake::Task.new('integration') do |t|
t.cucumber_opts = cucumber_opts + ' --tags @slow --tags ~@openstack'
Cucumber::Rake::Task.new('aws') do |t|
t.cucumber_opts = '-p aws'
end
Cucumber::Rake::Task.new('openstack') do |t|
t.cucumber_opts = cucumber_opts + ' --tags @openstack'
t.cucumber_opts = '-p openstack'
end
Cucumber::Rake::Task.new('wip') do |t|
t.cucumber_opts = '-p wip'
end
end
desc 'Run the basic test suite'
task :test => [:spec, :"cucumber:basic"]
task :test => ['spec', 'cucumber']
namespace :test do
desc 'Run all the tests, including the slow integration tests'
task :all => [:spec, :'cucumber:basic', :'cucumber:integration']
desc 'Run all the tests, including the slow (AWS-based) integration tests'
task :all => ['spec', 'cucumber', 'cucumber:aws']
end

7
cucumber.yml Normal file
View File

@ -0,0 +1,7 @@
<%
opts = "--color --format progress --format junit --out features/reports --format html --out features/report.html"
%>
default: <%= opts %> --tags ~@wip --tags ~@slow
aws: <%= opts %> --tags ~@wip --tags @slow --tags ~@openstack
openstack: <%= opts %> --tags ~@wip --tags @openstack
wip: <%= opts %> --tags @wip