Skip to content
Browse files

Document ability to run a single test.

  • Loading branch information...
1 parent ae54e41 commit de2043ade69508070fbc80a6eb4f7d5bce58ca76 @wangjohn wangjohn committed Aug 21, 2013
Showing with 8 additions and 1 deletion.
  1. +8 −1 guides/source/
9 guides/source/
@@ -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:
$ cd actionpack
$ bundle exec ruby -Itest test/template/form_helper_test.rb
+Or, you can run a single test in a particular file:
+$ 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.

0 comments on commit de2043a

Please sign in to comment.
Something went wrong with that request. Please try again.