diff options
author | Ilya Zayats <somebody32@gmail.com> | 2011-02-26 07:49:50 +0300 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2011-03-05 11:56:30 +0100 |
commit | feec2250bbb53428ae13ea928c68e378447bef81 (patch) | |
tree | cb29a7766d5a4777d83ddbd86aeb64cba1b19226 /railties/guides/source/contributing_to_ruby_on_rails.textile | |
parent | 3b10b8a201d9fbef831be81d7a4bc9b82c75a6f4 (diff) | |
download | rails-feec2250bbb53428ae13ea928c68e378447bef81.tar.gz rails-feec2250bbb53428ae13ea928c68e378447bef81.tar.bz2 rails-feec2250bbb53428ae13ea928c68e378447bef81.zip |
added information about TEST_DIR env variable
Diffstat (limited to 'railties/guides/source/contributing_to_ruby_on_rails.textile')
-rw-r--r-- | railties/guides/source/contributing_to_ruby_on_rails.textile | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/railties/guides/source/contributing_to_ruby_on_rails.textile b/railties/guides/source/contributing_to_ruby_on_rails.textile index 1977f8d0ce..e00b26f948 100644 --- a/railties/guides/source/contributing_to_ruby_on_rails.textile +++ b/railties/guides/source/contributing_to_ruby_on_rails.textile @@ -101,6 +101,14 @@ $ cd actionpack $ rake test </shell> +If you want to run tests from the specific directory use the +TEST_DIR+ environment variable. For example, this will run tests inside +railties/test/generators+ directory only: + +<shell> +$ cd railties +$ TEST_DIR=generators rake test +</shell> + + h4. Warnings The test suite runs with warnings enabled. Ideally Ruby on Rails should issue no warning, but there may be a few, and also some from third-party libraries. Please ignore (or fix!) them if any, and submit patches that do not issue new warnings. |