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 06:13:17 +00:00
|
|
|
Rake::TestTask.new(:test_unit_webrat => "db:test:prepare") do |t|
|
2009-01-13 04:30:03 +00:00
|
|
|
ENV['WEBRAT_INTEGRATION_MODE'] = 'webrat'
|
2009-01-13 06:13:17 +00:00
|
|
|
t.libs << "test"
|
|
|
|
t.pattern = 'test/integration/**/*_test.rb'
|
|
|
|
t.verbose = true
|
2009-01-13 04:30:03 +00:00
|
|
|
end
|
2009-01-13 06:13:17 +00:00
|
|
|
Rake::Task['test_unit_webrat'].comment = "runs the test::unit based tests in webrat mode"
|
2009-01-13 04:30:03 +00:00
|
|
|
|
2009-01-13 06:13:17 +00:00
|
|
|
Rake::TestTask.new(:test_unit_selenium => "db:test:prepare") do |t|
|
2009-01-13 04:30:03 +00:00
|
|
|
ENV['WEBRAT_INTEGRATION_MODE'] = 'selenium'
|
2009-01-13 06:13:17 +00:00
|
|
|
t.libs << "test"
|
2009-01-13 06:26:49 +00:00
|
|
|
t.pattern = 'test/selenium/**/*_test.rb'
|
2009-01-13 06:13:17 +00:00
|
|
|
t.verbose = true
|
2009-01-13 04:30:03 +00:00
|
|
|
end
|
2009-01-13 06:13:17 +00:00
|
|
|
Rake::Task['test_unit_selenium'].comment = "runs the test::unit based tests in selenium mode"
|