Skip to content

Commit

Permalink
Updated RUNNING_UNIT_TESTS documentation with mention of the build_da…
Browse files Browse the repository at this point in the history
…tabases rake tasks.
  • Loading branch information
NathanZook authored and radar committed Oct 11, 2010
1 parent db52004 commit 9074e8c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion activerecord/RUNNING_UNIT_TESTS
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 9074e8c

Please sign in to comment.