Skip to content

Commit

Permalink
Add cucumber rake task, and run it in default task
Browse files Browse the repository at this point in the history
I was going for :features, but :cucumber is the default task name
suggested by the cucumber gem.
  • Loading branch information
joliss committed Jan 26, 2012
1 parent 756ec1b commit 4533ebf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
require 'rubygems'
require 'rspec/core/rake_task'
require 'cucumber/rake/task'
require 'yard'

desc "Run all examples"
Expand All @@ -13,4 +14,8 @@ YARD::Rake::YardocTask.new do |t|
#t.options = ['--any', '--extra', '--opts'] # optional
end

task :default => :spec
Cucumber::Rake::Task.new(:cucumber) do |task|
task.cucumber_opts = ['--format=progress', 'features']
end

task :default => [:spec, :cucumber]

0 comments on commit 4533ebf

Please sign in to comment.