This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Adding cucumber magic into the rakefile

  • Loading branch information...
1 parent b85a5d7 commit f31cc6310156204b56dc1be5490c1c1a3b0badcd @qrush qrush committed Jul 13, 2009
Showing with 13 additions and 1 deletion.
  1. +13 −1 Rakefile
View
@@ -1,7 +1,7 @@
require 'rubygems'
require 'rake'
-task :default => :test
+task :default => [:test, :features]
desc "Grade your projects."
task :grade do
@@ -59,3 +59,15 @@ Rake::RDocTask.new do |rdoc|
rdoc.rdoc_files.include('lib/**/*.rb')
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.