Browse files

Add sqlite to tests

  • Loading branch information...
1 parent bb51ed0 commit 8140359cc64474fbf21fd5b03e4f89e59c663963 @sionide21 sionide21 committed Apr 11, 2011
Showing with 11 additions and 4 deletions.
  1. +4 −1 .gitignore
  2. +4 −0 test/database.yml
  3. +3 −3 test/tasks.rake
View
5 .gitignore
@@ -5,6 +5,9 @@ Gemfile.lock
# Test log files
test/*-debug.log
+# SQLite Test DB
+test/test.sqlite3
+
# SVN
.svn
@@ -31,4 +34,4 @@ doc
*.gem
# For MacOS:
-.DS_Store
+.DS_Store
View
4 test/database.yml
@@ -18,3 +18,7 @@ sqlserver:
mode: ODBC
dsn: geokit_rails_tests
username: tests
+
+sqlite:
+ adapter: sqlite3
+ database: test/test.sqlite3
View
6 test/tasks.rake
@@ -18,7 +18,7 @@ Rake::TestTask.new(:test) do |test|
test.verbose = true
end
-%w(mysql postgresql sqlserver).each do |configuration|
+%w(mysql postgresql sqlserver sqlite).each do |configuration|
EnvTestTask.new("test_#{configuration}") do |t|
t.pattern = 'test/**/*_test.rb'
t.verbose = true
@@ -28,11 +28,11 @@ end
end
desc 'Test available databases.'
-task :test_databases => %w(test_mysql test_postgresql test_sqlserver)
+task :test_databases => %w(test_mysql test_postgresql test_sqlserver test_sqlite)
require 'rcov/rcovtask'
Rcov::RcovTask.new do |test|
test.libs << 'test'
test.pattern = 'test/**/test_*.rb'
test.verbose = true
-end
+end

0 comments on commit 8140359

Please sign in to comment.