Permalink
Browse files

Prep for Hudson

  • Loading branch information...
seangeo committed Oct 2, 2009
1 parent b4e3c79 commit ed79954cbf3b4b286c661f36a28c4649db86531f
Showing with 11 additions and 29 deletions.
  1. +0 −28 lib/tasks/cruise.rake
  2. +11 −1 lib/tasks/cucumber.rake
View
@@ -1,28 +0,0 @@
-# Copyright (c) 2008 The Kaphan Foundation
-#
-# Possession of a copy of this file grants no permission or license
-# to use, modify, or create derivate works.
-# Please visit http://www.peerworks.org/contact for further information.
-task :cruise do
- ENV['RAILS_ENV'] = RAILS_ENV = 'test'
- Rake::Task['gems:install:dependencies'].invoke
- Rake::Task['gems:build'].invoke
- Rake::Task['db:migrate'].invoke
- # Rake::Task['assets:clean'].invoke
- # system "touch tmp/restart.txt"
-
- Rake::Task['spec:code'].invoke
- Rake::Task['spec:controllers'].invoke
- Rake::Task['spec:lib'].invoke
- Rake::Task['spec:models'].invoke
- Rake::Task['spec:views'].invoke
- Rake::Task['features'].invoke
- # Rake::Task['selenium:rc:start'].invoke
- # at_exit {
- # Rake::Task['selenium:rc:stop'].invoke
- # }
- # Rake::Task['selenium:all'].invoke
-
- # TODO: This needs to span specs, features, and selenium
- # Rake::Task['rcov_for_cc'].invoke
-end
View
@@ -1,7 +1,17 @@
$:.unshift(RAILS_ROOT + '/vendor/gems/cucumber-0.1.14/lib')
require 'cucumber/rake/task'
+task :clear_cucumber do
+ rm_rf("cucumber")
+ mkdir("cucumber")
+end
+
+Cucumber::Rake::Task.new(:features_for_ci) do |t|
+ t.cucumber_opts = "--format html > cucumber/features.html"
+end
+
Cucumber::Rake::Task.new(:features) do |t|
t.cucumber_opts = "--format pretty"
end
-task :features => 'db:test:prepare'
+task :features => 'db:test:prepare'
+task :features_for_ci => ['clear_cucumber']

0 comments on commit ed79954

Please sign in to comment.