aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/Rakefile
diff options
context:
space:
mode:
authorStephen Bannasch <stephen.bannasch@gmail.com>2008-12-27 15:37:47 -0500
committerMichael Koziarski <michael@koziarski.com>2009-01-26 16:08:44 +1300
commit4ef9845aa324679b88e19b8223dd90b774215bc6 (patch)
tree5f2eb22515bececed544fb0db5dd6d5701b181d6 /activerecord/Rakefile
parent617ad23574770310fd037529af3d4bd7e722f72a (diff)
downloadrails-4ef9845aa324679b88e19b8223dd90b774215bc6.tar.gz
rails-4ef9845aa324679b88e19b8223dd90b774215bc6.tar.bz2
rails-4ef9845aa324679b88e19b8223dd90b774215bc6.zip
Adding AR tests for JDBC connections
New connections: jdbcmysql jdbcpostgresql jdbcsqlite3 jdbcderby jdbch2 jdbchsqldb jdbcpostgresql To test you will need the native database installed (if one is required), activerecord-jdbc-adapter and the specific activerecord-jdbc<database>-adapter for the database you are testing. Run the tests like this: jruby -S rake test_jdbcmysql Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1685 state:committed]
Diffstat (limited to 'activerecord/Rakefile')
-rw-r--r--activerecord/Rakefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/activerecord/Rakefile b/activerecord/Rakefile
index f47674d5b7..1c7e2603ee 100644
--- a/activerecord/Rakefile
+++ b/activerecord/Rakefile
@@ -32,9 +32,13 @@ task :default => :test
desc 'Run mysql, sqlite, and postgresql tests'
task :test => %w(test_mysql test_sqlite3 test_postgresql)
-for adapter in %w( mysql postgresql sqlite sqlite3 firebird db2 oracle sybase openbase frontbase )
+for adapter in %w( mysql postgresql sqlite sqlite3 firebird db2 oracle sybase openbase frontbase jdbcmysql jdbcpostgresql jdbcsqlite3 jdbcderby jdbch2 jdbchsqldb )
Rake::TestTask.new("test_#{adapter}") { |t|
- t.libs << "test" << "test/connections/native_#{adapter}"
+ if adapter =~ /jdbc/
+ t.libs << "test" << "test/connections/jdbc_#{adapter}"
+ else
+ t.libs << "test" << "test/connections/native_#{adapter}"
+ end
adapter_short = adapter == 'db2' ? adapter : adapter[/^[a-z]+/]
t.test_files=Dir.glob( "test/cases/**/*_test{,_#{adapter_short}}.rb" ).sort
t.verbose = true