From df85dfa6fa6f7ae9a0b72eb9b9a254d2d5560f38 Mon Sep 17 00:00:00 2001 From: Dalibor Nasevic Date: Fri, 8 Feb 2013 00:53:11 +0100 Subject: Improve wording for rails test command --- railties/CHANGELOG.md | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'railties/CHANGELOG.md') 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* -- cgit v1.2.3