From 7e75dcbff30657f395da9769b34ff252b7485e03 Mon Sep 17 00:00:00 2001 From: Alexey Vakhov Date: Sat, 28 Apr 2012 09:17:10 +0400 Subject: Update contributing guide - run single test --- guides/source/contributing_to_ruby_on_rails.textile | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'guides/source/contributing_to_ruby_on_rails.textile') diff --git a/guides/source/contributing_to_ruby_on_rails.textile b/guides/source/contributing_to_ruby_on_rails.textile index fbb3483dae..5f33336fdf 100644 --- a/guides/source/contributing_to_ruby_on_rails.textile +++ b/guides/source/contributing_to_ruby_on_rails.textile @@ -105,6 +105,13 @@ $ cd railties $ TEST_DIR=generators bundle exec rake test +You can run any single test separately too: + + +$ cd actionpack +$ ruby -Itest test/template/form_helper_test.rb + + h4. Warnings The test suite runs with warnings enabled. Ideally, Ruby on Rails should issue no warnings, but there may be a few, as well as some from third-party libraries. Please ignore (or fix!) them, if any, and submit patches that do not issue new warnings. -- cgit v1.2.3 From dab6c3aa484778b44c1b3cd2b9c46363916295ff Mon Sep 17 00:00:00 2001 From: Alexey Vakhov Date: Sat, 28 Apr 2012 09:30:30 +0400 Subject: Update guides - run single test for AR testing --- guides/source/contributing_to_ruby_on_rails.textile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'guides/source/contributing_to_ruby_on_rails.textile') diff --git a/guides/source/contributing_to_ruby_on_rails.textile b/guides/source/contributing_to_ruby_on_rails.textile index 5f33336fdf..ddb7175e03 100644 --- a/guides/source/contributing_to_ruby_on_rails.textile +++ b/guides/source/contributing_to_ruby_on_rails.textile @@ -208,6 +208,12 @@ $ bundle exec rake test will now run the four of them in turn. +You can also run any single test separately: + + +$ ARRCONN=sqlite3 ruby -Itest test/cases/associations/has_many_associations_test.rb + + You can invoke +test_jdbcmysql+, +test_jdbcsqlite3+ or +test_jdbcpostgresql+ also. See the file +activerecord/RUNNING_UNIT_TESTS+ for information on running more targeted database tests, or the file +ci/travis.rb+ for the test suite run by the continuous integration server. h4. Older Versions of Ruby on Rails -- cgit v1.2.3 From c6dbaac12b109b4a9b6ba551538fad1f4fb463f4 Mon Sep 17 00:00:00 2001 From: Alexey Vakhov Date: Sat, 28 Apr 2012 16:45:05 +0400 Subject: Fix misptint Injected at dab6c3aa484778b44c1b3cd2b9c46363916295ff --- guides/source/contributing_to_ruby_on_rails.textile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'guides/source/contributing_to_ruby_on_rails.textile') diff --git a/guides/source/contributing_to_ruby_on_rails.textile b/guides/source/contributing_to_ruby_on_rails.textile index ddb7175e03..df475a2359 100644 --- a/guides/source/contributing_to_ruby_on_rails.textile +++ b/guides/source/contributing_to_ruby_on_rails.textile @@ -211,7 +211,7 @@ will now run the four of them in turn. You can also run any single test separately: -$ ARRCONN=sqlite3 ruby -Itest test/cases/associations/has_many_associations_test.rb +$ ARCONN=sqlite3 ruby -Itest test/cases/associations/has_many_associations_test.rb You can invoke +test_jdbcmysql+, +test_jdbcsqlite3+ or +test_jdbcpostgresql+ also. See the file +activerecord/RUNNING_UNIT_TESTS+ for information on running more targeted database tests, or the file +ci/travis.rb+ for the test suite run by the continuous integration server. -- cgit v1.2.3