breaking the test mode out into a specific test modes

This commit is contained in:
Mike Gaffney 2009-01-12 22:30:03 -06:00
parent 7fa51ab8c4
commit a8a63472bc
2 changed files with 13 additions and 1 deletions

View File

@ -111,7 +111,7 @@ namespace :spec do
desc "Run the Rails integration specs"
task :rails do
Dir.chdir "spec/integration/rails" do
result = system "rake test:integration"
result = system "rake test_unit_webrat"
raise "Rails integration tests failed" unless result
end
end

View File

@ -8,3 +8,15 @@ require 'rake/testtask'
require 'rake/rdoctask'
require 'tasks/rails'
desc "runs the test::unit based tests in webrat mode"
task :test_unit_webrat do
ENV['WEBRAT_INTEGRATION_MODE'] = 'webrat'
Rake::Task['test:integration'].invoke
end
desc "runs the test::unit based tests in selenium mode"
task :test_unit_webrat do
ENV['WEBRAT_INTEGRATION_MODE'] = 'selenium'
Rake::Task['test:integration'].invoke
end