aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/RUNNING_UNIT_TESTS
diff options
context:
space:
mode:
authorMichael Koziarski <michael@koziarski.com>2007-10-15 06:48:16 +0000
committerMichael Koziarski <michael@koziarski.com>2007-10-15 06:48:16 +0000
commit0d0fd2142b77cb212f8b4138026b2f44ec77db4e (patch)
treef7c41467c2cd5ab7cda002ed44a2335d2e55684a /activerecord/RUNNING_UNIT_TESTS
parent61639262f10be98f4839649b84689d27c18b5c8c (diff)
downloadrails-0d0fd2142b77cb212f8b4138026b2f44ec77db4e.tar.gz
rails-0d0fd2142b77cb212f8b4138026b2f44ec77db4e.tar.bz2
rails-0d0fd2142b77cb212f8b4138026b2f44ec77db4e.zip
Update the instructions for running tests.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7902 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/RUNNING_UNIT_TESTS')
-rw-r--r--activerecord/RUNNING_UNIT_TESTS26
1 files changed, 3 insertions, 23 deletions
diff --git a/activerecord/RUNNING_UNIT_TESTS b/activerecord/RUNNING_UNIT_TESTS
index 80cfd8a6e3..851fb356d7 100644
--- a/activerecord/RUNNING_UNIT_TESTS
+++ b/activerecord/RUNNING_UNIT_TESTS
@@ -23,16 +23,11 @@ Rake can be found at http://rake.rubyforge.org
== Running by hand
Unit tests are located in test directory. If you only want to run a single test suite,
-or don't want to bother with Rake, you can do so with something like:
+you can do so with:
- cd test; ruby -I "connections/native_mysql" base_test.rb
+ rake test_mysql TEST=base_test.rb
-That'll run the base suite using the MySQL-Ruby adapter. Change the adapter
-and test suite name as needed.
-
-You can also run all the suites on a specific adapter with:
-
- cd test; all.sh "connections/native_mysql"
+That'll run the base suite using the MySQL-Ruby adapter.
== Faster tests
@@ -46,19 +41,4 @@ Or, by hand:
AR_TX_FIXTURES=yes ruby -I connections/native_sqlite3 base_test.rb
-== Testing with Oracle
-
-In order to allow for testing against Oracle using an "arunit" schema within an existing
-Oracle database, the database name and tns connection string must be set in environment
-variables prior to running the unit tests.
-
- $ export ARUNIT_DB_NAME=MYDB
- $ export ARUNIT_DB=MYDB
-
-The ARUNIT_DB_NAME variable should be set to the name by which the database knows
-itself, ie., what will be returned by the query:
-
- select sys_context('userenv','db_name') db from dual
-
-And the ARUNIT_DB variable should be set to the tns connection string.