diff options
author | Dalibor Nasevic <dalibor.nasevic@gmail.com> | 2013-02-08 00:53:11 +0100 |
---|---|---|
committer | Prem Sichanugrist <s@sikac.hu> | 2013-03-09 16:03:55 -0500 |
commit | df85dfa6fa6f7ae9a0b72eb9b9a254d2d5560f38 (patch) | |
tree | 6a0782530c35a6010c257394cb17e3bea1903707 /railties/CHANGELOG.md | |
parent | 1a0c58b2988a24a783b4f9a658ac629922125551 (diff) | |
download | rails-df85dfa6fa6f7ae9a0b72eb9b9a254d2d5560f38.tar.gz rails-df85dfa6fa6f7ae9a0b72eb9b9a254d2d5560f38.tar.bz2 rails-df85dfa6fa6f7ae9a0b72eb9b9a254d2d5560f38.zip |
Improve wording for rails test command
Diffstat (limited to 'railties/CHANGELOG.md')
-rw-r--r-- | railties/CHANGELOG.md | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/railties/CHANGELOG.md b/railties/CHANGELOG.md index 4145938063..e3b1bc37c6 100644 --- a/railties/CHANGELOG.md +++ b/railties/CHANGELOG.md @@ -19,7 +19,7 @@ *Terence Lee* -* Rails now generate a `test/test_helper.rb` file with `fixtures :all` commented out by default, +* Rails now generates a `test/test_helper.rb` file with `fixtures :all` commented out by default, since we don't want to force loading all fixtures for user when a single test is run. However, fixtures are still going to be loaded automatically for test suites. @@ -27,24 +27,27 @@ *Prem Sichanugrist* -* Add `rails test` command to run the test suite +* Add `rails test` command for running tests - To run the whole test suite: + To run all tests: $ rails test - To run the test file(s): + To run a test suite + + $ rails test [models,helpers,units,controllers,mailers,...] + + To run a selected test file(s): $ rails test test/unit/foo_test.rb [test/unit/bar_test.rb ...] - To run the test suite + To run a single test from a test file - $ rails test [models,helpers,units,controllers,mailers,...] + $ rails test test/unit/foo_test.rb -n test_the_truth For more information, see `rails test --help`. - This command will eventually replacing `rake test:*`, and `rake test` - command will actually invoking `rails test` instead. + This command will eventually replace `rake test:*` and `rake test` tasks *Prem Sichanugrist and Chris Toomey* |