1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Updated RUNNING_UNIT_TESTS documentation with mention of the build_databases rake tasks.

This commit is contained in:
Nathan Zook and Ryan Bigg 2010-10-11 11:15:38 +11:00 committed by Ryan Bigg
parent db520042b3
commit 9074e8c644

View file

@ -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"