diff options
author | Ilya Zayats <somebody32@gmail.com> | 2011-02-26 07:49:50 +0300 |
---|---|---|
committer | Ilya Zayats <somebody32@gmail.com> | 2011-02-26 07:49:50 +0300 |
commit | 6de3f1fb4e3160d0ab8f986ebe9287ce1a19aab0 (patch) | |
tree | 48a5545446b7662eb0e112803925c63f0f8b29f5 | |
parent | 2e60b00788fb234a3afe96016c639f7f2ced7115 (diff) | |
download | rails-6de3f1fb4e3160d0ab8f986ebe9287ce1a19aab0.tar.gz rails-6de3f1fb4e3160d0ab8f986ebe9287ce1a19aab0.tar.bz2 rails-6de3f1fb4e3160d0ab8f986ebe9287ce1a19aab0.zip |
added information about TEST_DIR env variable
-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. |