2008-12-29 06:11:41 +00:00
|
|
|
# Add your own tasks in files placed in lib/tasks ending in .rake,
|
|
|
|
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
|
|
|
|
|
|
|
|
require(File.join(File.dirname(__FILE__), 'config', 'boot'))
|
|
|
|
|
|
|
|
require 'rake'
|
|
|
|
require 'rake/testtask'
|
|
|
|
require 'rake/rdoctask'
|
|
|
|
|
|
|
|
require 'tasks/rails'
|
2009-01-13 04:30:03 +00:00
|
|
|
|
|
|
|
|
2009-01-13 13:57:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
namespace :test_unit do
|
|
|
|
desc "runs the test::unit based tests in webrat mode"
|
|
|
|
task :rails do
|
|
|
|
ENV['WEBRAT_INTEGRATION_MODE'] = 'rails'
|
2009-05-11 20:48:28 +00:00
|
|
|
Rake::Task['test:integration'].execute
|
2009-01-13 13:57:20 +00:00
|
|
|
end
|
2009-01-23 21:37:26 +00:00
|
|
|
|
2009-01-13 13:57:20 +00:00
|
|
|
desc "runs the test::unit based tests in selenium mode"
|
|
|
|
task :selenium do
|
|
|
|
ENV['WEBRAT_INTEGRATION_MODE'] = 'selenium'
|
2009-05-11 20:48:28 +00:00
|
|
|
Rake::Task['test:integration'].execute
|
2009-01-13 13:57:20 +00:00
|
|
|
end
|
2009-01-23 21:37:26 +00:00
|
|
|
|
|
|
|
desc "run both selenium and rails mode Test::Unit suites"
|
2009-01-13 13:57:20 +00:00
|
|
|
task :all => [:rails, :selenium]
|
2009-01-13 04:30:03 +00:00
|
|
|
end
|