Skip to content

Commit

Permalink
Add cucumber tasks to run all tests under ActiveRecord
Browse files Browse the repository at this point in the history
I kept the fast/slow split up just like the in-memory tests to have a
good point of comparison between the test suites.
  • Loading branch information
jasonroelofs committed Dec 28, 2012
1 parent 4b206d9 commit e511ce0
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ task :default => "test:all"

namespace :test do
desc "Run all tests"
task :all => [:units, :controllers, :features, :features_slow, :repositories]
task :all => [:units, :controllers, :repositories, :features, :features_slow, :features_with_ar, :features_with_ar_slow]

desc "Run all unit tests"
Rake::TestTask.new :units do |t|
Expand Down Expand Up @@ -37,4 +37,14 @@ namespace :test do
Cucumber::Rake::Task.new(:features_slow) do |t|
t.cucumber_opts = "features --tags @javascript --format progress"
end

desc "Run the fast features using Active Record"
Cucumber::Rake::Task.new(:features_with_ar) do |t|
t.cucumber_opts = "features --tags ~@javascript --format progress REAL_DB=true"
end

desc "Run the slow features using Active Record"
Cucumber::Rake::Task.new(:features_with_ar_slow) do |t|
t.cucumber_opts = "features --tags @javascript --format progress REAL_DB=true"
end
end

0 comments on commit e511ce0

Please sign in to comment.