Permalink
Browse files

Add cucumber profiles and clean up the Rakefile a bit

  • Loading branch information...
1 parent 18c64cb commit 41b357060f122b1a337adeb47d9ae30dc36ab713 @rtyler committed Aug 23, 2012
Showing with 20 additions and 11 deletions.
  1. +2 −0 .gitignore
  2. +11 −11 Rakefile
  3. +7 −0 cucumber.yml
View
2 .gitignore
@@ -18,3 +18,5 @@ tmp
.blimpy.d
.rvmrc
Blimpyfile
+features/report.html
+features/reports
View
22 Rakefile
@@ -9,28 +9,28 @@ RSpec::Core::RakeTask.new('spec') do |t|
end
-namespace :cucumber do
- cucumber_opts = '--color --format progress --tags ~@wip'
+Cucumber::Rake::Task.new('cucumber')
- Cucumber::Rake::Task.new('basic') do |t|
- t.cucumber_opts = cucumber_opts + ' --tags ~@slow'
+namespace :cucumber do
+ Cucumber::Rake::Task.new('aws') do |t|
+ t.cucumber_opts = '-p aws'
end
- Cucumber::Rake::Task.new('integration') do |t|
- t.cucumber_opts = cucumber_opts + ' --tags @slow --tags ~@openstack'
+ Cucumber::Rake::Task.new('openstack') do |t|
+ t.cucumber_opts = '-p openstack'
end
- Cucumber::Rake::Task.new('openstack') do |t|
- t.cucumber_opts = cucumber_opts + ' --tags @openstack'
+ 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
View
7 cucumber.yml
@@ -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

0 comments on commit 41b3570

Please sign in to comment.