aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source
diff options
context:
space:
mode:
authorSandip Ransing <sandip@funonrails.com>2014-11-14 02:48:52 +0530
committerSandip Ransing <sandip@funonrails.com>2014-11-14 02:52:58 +0530
commitc31e638a37946a120f6dbf207127d36beea5ab85 (patch)
tree5f02fcc4ad4c9991d164d6062532b0093e44c8ed /guides/source
parentc757d35eab2cdb603823cff9211686d254851881 (diff)
downloadrails-c31e638a37946a120f6dbf207127d36beea5ab85.tar.gz
rails-c31e638a37946a120f6dbf207127d36beea5ab85.tar.bz2
rails-c31e638a37946a120f6dbf207127d36beea5ab85.zip
[ci skip] Improve upon testing tasks guide
Add missing testing tasks and also improve upon tasks descriptions
Diffstat (limited to 'guides/source')
-rw-r--r--guides/source/testing.md8
1 files changed, 5 insertions, 3 deletions
diff --git a/guides/source/testing.md b/guides/source/testing.md
index c31d24c6d4..9f881f1f47 100644
--- a/guides/source/testing.md
+++ b/guides/source/testing.md
@@ -786,13 +786,14 @@ Rake Tasks for Running your Tests
---------------------------------
You don't need to set up and run your tests by hand on a test-by-test basis.
-Rails comes with a number of commands to help in testing.
-The table below lists all commands that come along in the default Rakefile
+Rails comes with a number of built-in rake tasks to help in testing.
+Below table lists available commands which comes along with `Rakefile` tasks
when you initiate a Rails project.
| Tasks | Description |
| ----------------------- | ----------- |
-| `rake test` | Runs all tests in the test folder. You can also simply run `rake` as Rails will run all the tests by default |
+| `rake test` | Runs all tests in the test folder by default |
+| `rake test:all` | Runs tests quickly by merging all types and not resetting the db |
| `rake test:controllers` | Runs all the controller tests from `test/controllers` |
| `rake test:functionals` | Runs all the functional tests from `test/controllers`, `test/mailers`, and `test/functional` |
| `rake test:helpers` | Runs all the helper tests from `test/helpers` |
@@ -802,6 +803,7 @@ when you initiate a Rails project.
| `rake test:models` | Runs all the model tests from `test/models` |
| `rake test:units` | Runs all the unit tests from `test/models`, `test/helpers`, and `test/unit` |
| `rake test:db` | Runs all tests and resets the db |
+| `rake test:all:db` | Runs tests quickly by merging all types and resets the db |
Brief Note About `Minitest`