Skip to content
This repository has been archived by the owner on Nov 11, 2017. It is now read-only.

Commit

Permalink
Adding cucumber magic into the rakefile
Browse files Browse the repository at this point in the history
  • Loading branch information
qrush committed Jul 13, 2009
1 parent b85a5d7 commit f31cc63
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion Rakefile
Original file line number Original file line Diff line number Diff line change
@@ -1,7 +1,7 @@
require 'rubygems' require 'rubygems'
require 'rake' require 'rake'


task :default => :test task :default => [:test, :features]


desc "Grade your projects." desc "Grade your projects."
task :grade do task :grade do
Expand Down Expand Up @@ -59,3 +59,15 @@ Rake::RDocTask.new do |rdoc|
rdoc.rdoc_files.include('lib/**/*.rb') rdoc.rdoc_files.include('lib/**/*.rb')
end end


begin
require 'cucumber/rake/task'

Cucumber::Rake::Task.new(:features) do |t|
t.cucumber_opts = "--format progress"
end
rescue LoadError
desc 'Cucumber rake task not available'
task :features do
abort 'Cucumber rake task is not available. Be sure to install cucumber as a gem or plugin'
end
end

0 comments on commit f31cc63

Please sign in to comment.