aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/RUNNING_UNIT_TESTS
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2011-06-09 09:11:26 +0100
committerJon Leighton <j@jonathanleighton.com>2011-06-09 20:20:51 +0100
commite48829946d4002f6baffef21f401684d43ab9a35 (patch)
treede0d3a75e2d6073dea65de61a411237345d9c770 /activerecord/RUNNING_UNIT_TESTS
parentd0a1e37d70abc48408ed6bc087bd757adae6eee2 (diff)
downloadrails-e48829946d4002f6baffef21f401684d43ab9a35.tar.gz
rails-e48829946d4002f6baffef21f401684d43ab9a35.tar.bz2
rails-e48829946d4002f6baffef21f401684d43ab9a35.zip
Update the RUNNING_UNIT_TESTS file
Diffstat (limited to 'activerecord/RUNNING_UNIT_TESTS')
-rw-r--r--activerecord/RUNNING_UNIT_TESTS15
1 files changed, 5 insertions, 10 deletions
diff --git a/activerecord/RUNNING_UNIT_TESTS b/activerecord/RUNNING_UNIT_TESTS
index 16444249cc..9dc4b91d26 100644
--- a/activerecord/RUNNING_UNIT_TESTS
+++ b/activerecord/RUNNING_UNIT_TESTS
@@ -9,24 +9,19 @@ You can build postgres and mysql databases using the build_postgresql and build_
You can run a particular test file from the command line, e.g.
- $ ruby test/cases/base_test.rb
+ $ ruby -Itest test/cases/base_test.rb
To run a specific test:
- $ ruby test/cases/base_test.rb -n test_something_works
+ $ ruby -Itest test/cases/base_test.rb -n test_something_works
You can run with a database other than the default you set in test/config.yml, using the ARCONN
environment variable:
- $ ARCONN=postgresql ruby test/cases/base_test.rb
+ $ ARCONN=postgresql ruby -Itest test/cases/base_test.rb
You can run all the tests for a given database via rake:
-To setup the testing environment for PostgreSQL use this command:
-
- rake postgresql:build_databases
-
-The incantation for running a particular test looks like this
-
- rake test TEST=test/cases/datatype_test_postgresql.rb TESTOPTS="--name=test_timestamp_with_zone_values_without_rails_time_zone_support"
+ $ rake test_mysql
+The 'rake test' task will run all the tests for mysql, mysql2, sqlite3 and postgresql.