Rake runs cucumber tasks by default
This commit is contained in:
parent
ee7920f6e5
commit
488fddfff5
8
Rakefile
8
Rakefile
@ -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'
|
||||||
|
Loading…
Reference in New Issue
Block a user