mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #30251 from yhirano55/fix_testing_guide
Fix testing guide [skip ci]
This commit is contained in:
commit
5949cc05d3
1 changed files with 4 additions and 2 deletions
|
@ -367,9 +367,10 @@ All the basic assertions such as `assert_equal` defined in `Minitest::Assertions
|
|||
* [`ActiveSupport::TestCase`](http://api.rubyonrails.org/classes/ActiveSupport/TestCase.html)
|
||||
* [`ActionMailer::TestCase`](http://api.rubyonrails.org/classes/ActionMailer/TestCase.html)
|
||||
* [`ActionView::TestCase`](http://api.rubyonrails.org/classes/ActionView/TestCase.html)
|
||||
* [`ActionDispatch::IntegrationTest`](http://api.rubyonrails.org/classes/ActionDispatch/IntegrationTest.html)
|
||||
* [`ActiveJob::TestCase`](http://api.rubyonrails.org/classes/ActiveJob/TestCase.html)
|
||||
* [`ActionDispatch::IntegrationTest`](http://api.rubyonrails.org/classes/ActionDispatch/IntegrationTest.html)
|
||||
* [`ActionDispatch::SystemTestCase`](http://api.rubyonrails.org/classes/ActionDispatch/SystemTestCase.html)
|
||||
* [`Rails::Generators::TestCase`](http://api.rubyonrails.org/classes/Rails/Generators/TestCase.html)
|
||||
|
||||
Each of these classes include `Minitest::Assertions`, allowing us to use all of the basic assertions in our tests.
|
||||
|
||||
|
@ -451,7 +452,8 @@ You can run multiple files and directories at the same time:
|
|||
By default test failures and errors are reported inline during a run.
|
||||
|
||||
Rails options:
|
||||
-e, --environment ENV Run tests in the ENV environment
|
||||
-w, --warnings Run with Ruby warnings enabled
|
||||
-e, --environment Run tests in the ENV environment
|
||||
-b, --backtrace Show the complete backtrace
|
||||
-d, --defer-output Output test failures and errors after the test run
|
||||
-f, --fail-fast Abort test run on first failure or error
|
||||
|
|
Loading…
Reference in a new issue