Skip to content

Commit 1aa2b93

Browse files
committed
Update output of bin/rails test -h in testing guide
1 parent 75e3407 commit 1aa2b93

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

guides/source/testing.md

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -460,29 +460,36 @@ at the end of the test run and so on. Check the documentation of the test runner
460460

461461
```bash
462462
$ bin/rails test -h
463-
Usage: rails test [options] [files or directories]
463+
Usage:
464+
bin/rails test [PATHS...]
464465

465-
You can run a single test by appending a line number to a filename:
466+
Run tests except system tests
466467

467-
bin/rails test test/models/user_test.rb:27
468+
Examples:
469+
You can run a single test by appending a line number to a filename:
468470

469-
You can run multiple tests with in a line range by appending the line range to a filename:
471+
bin/rails test test/models/user_test.rb:27
470472

471-
bin/rails test test/models/user_test.rb:10-20
473+
You can run multiple tests with in a line range by appending the line range to a filename:
472474

473-
You can run multiple files and directories at the same time:
475+
bin/rails test test/models/user_test.rb:10-20
474476

475-
bin/rails test test/controllers test/integration/login_test.rb
477+
You can run multiple files and directories at the same time:
476478

477-
By default test failures and errors are reported inline during a run.
479+
bin/rails test test/controllers test/integration/login_test.rb
480+
481+
By default test failures and errors are reported inline during a run.
478482

479483
minitest options:
480484
-h, --help Display this help.
481485
--no-plugins Bypass minitest plugin auto-loading (or set $MT_NO_PLUGINS).
482486
-s, --seed SEED Sets random seed. Also via env. Eg: SEED=n rake
483487
-v, --verbose Verbose. Show progress processing files.
488+
-q, --quiet Quiet. Show no progress processing files.
489+
--show-skips Show skipped at the end of run.
484490
-n, --name PATTERN Filter run on /regexp/ or string.
485491
--exclude PATTERN Exclude /regexp/ or string from run.
492+
-S, --skip CODES Skip reporting of certain types of results (eg E).
486493

487494
Known extensions: rails, pride
488495
-w, --warnings Run with Ruby warnings enabled
@@ -491,6 +498,7 @@ Known extensions: rails, pride
491498
-d, --defer-output Output test failures and errors after the test run
492499
-f, --fail-fast Abort test run on first failure or error
493500
-c, --[no-]color Enable color in the output
501+
--profile [COUNT] Enable profiling of tests and list the slowest test cases (default: 10)
494502
-p, --pride Pride. Show your testing pride!
495503
```
496504

0 commit comments

Comments
 (0)