aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/development_dependencies_install.md
diff options
context:
space:
mode:
authorwangjohn <wangjohn@mit.edu>2013-08-21 18:00:47 -0500
committerwangjohn <wangjohn@mit.edu>2013-08-21 18:03:59 -0500
commitde2043ade69508070fbc80a6eb4f7d5bce58ca76 (patch)
treeb1453ac71d40e4fc09b7ff6d1a4b49a00149dd5f /guides/source/development_dependencies_install.md
parentae54e41824011692106fe7a27dc0991a6342096d (diff)
downloadrails-de2043ade69508070fbc80a6eb4f7d5bce58ca76.tar.gz
rails-de2043ade69508070fbc80a6eb4f7d5bce58ca76.tar.bz2
rails-de2043ade69508070fbc80a6eb4f7d5bce58ca76.zip
Document ability to run a single test.
Diffstat (limited to 'guides/source/development_dependencies_install.md')
-rw-r--r--guides/source/development_dependencies_install.md9
1 files changed, 8 insertions, 1 deletions
diff --git a/guides/source/development_dependencies_install.md b/guides/source/development_dependencies_install.md
index 42340cc2b4..a5016b6ea8 100644
--- a/guides/source/development_dependencies_install.md
+++ b/guides/source/development_dependencies_install.md
@@ -133,13 +133,20 @@ $ cd railties
$ TEST_DIR=generators bundle exec rake test
```
-You can run any single test separately too:
+You can run the tests for a particular file by using:
```bash
$ cd actionpack
$ bundle exec ruby -Itest test/template/form_helper_test.rb
```
+Or, you can run a single test in a particular file:
+
+```bash
+$ cd actionpack
+$ bundle exec ruby -Itest path/to/test.rb -n test_name
+```
+
### Active Record Setup
The test suite of Active Record attempts to run four times: once for SQLite3, once for each of the two MySQL gems (`mysql` and `mysql2`), and once for PostgreSQL. We are going to see now how to set up the environment for them.