aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/RUNNING_UNIT_TESTS
diff options
context:
space:
mode:
authorNathan Zook and Ryan Bigg <blogger@pierian-spring.net>2010-10-11 11:15:38 +1100
committerRyan Bigg <radarlistener@gmail.com>2010-10-11 11:15:38 +1100
commit9074e8c644c952a639617ed190b915a54a835e1b (patch)
tree4147837ed3fe2920ad3309cbb759fc22398a4aab /activerecord/RUNNING_UNIT_TESTS
parentdb520042b3fbb94fd12f9f8c0458f6b2cd5187a9 (diff)
downloadrails-9074e8c644c952a639617ed190b915a54a835e1b.tar.gz
rails-9074e8c644c952a639617ed190b915a54a835e1b.tar.bz2
rails-9074e8c644c952a639617ed190b915a54a835e1b.zip
Updated RUNNING_UNIT_TESTS documentation with mention of the build_databases rake tasks.
Diffstat (limited to 'activerecord/RUNNING_UNIT_TESTS')
-rw-r--r--activerecord/RUNNING_UNIT_TESTS7
1 files changed, 6 insertions, 1 deletions
diff --git a/activerecord/RUNNING_UNIT_TESTS b/activerecord/RUNNING_UNIT_TESTS
index 324df2c025..18e3936d8a 100644
--- a/activerecord/RUNNING_UNIT_TESTS
+++ b/activerecord/RUNNING_UNIT_TESTS
@@ -31,8 +31,13 @@ That'll run the base suite using the MySQL-Ruby adapter. Some tests rely on the
being initialized - you can initialize the schema with:
rake test_mysql TEST=test/cases/aaa_create_tables_test.rb
+ rake mysql:build_databases
+
+To setup the testing environment for PostgreSQL use this command:
+
+ rake postgresql:build_databases
The incantation for running a particular test looks like this
- ruby -w -I"lib:test:test/connections/native_postgresql" test/cases/datatype_test_postgresql.rb -n test_timestamp_with_zone_values_without_rails_time_zone_support
+ rake test TEST=test/cases/datatype_test_postgresql.rb TESTOPTS="-n test_timestamp_with_zone_values_without_rails_time_zone_support"