Rake runs cucumber tasks by default

This commit is contained in:
Chris Eppstein 2010-11-27 16:58:04 -08:00
parent ee7920f6e5
commit 488fddfff5

View File

@ -5,10 +5,16 @@ require 'compass'
# ----- Default: Testing ------ # ----- Default: Testing ------
task :default => :test task :default => [:test, :features]
require 'rake/testtask' require 'rake/testtask'
require 'fileutils' require 'fileutils'
require 'cucumber'
require 'cucumber/rake/task'
Cucumber::Rake::Task.new(:features) do |t|
t.cucumber_opts = "features --format pretty"
end
Rake::TestTask.new :test do |t| Rake::TestTask.new :test do |t|
t.libs << 'lib' t.libs << 'lib'