@@ -460,29 +460,36 @@ at the end of the test run and so on. Check the documentation of the test runner
460
460
461
461
``` bash
462
462
$ bin/rails test -h
463
- Usage: rails test [options] [files or directories]
463
+ Usage:
464
+ bin/rails test [PATHS...]
464
465
465
- You can run a single test by appending a line number to a filename:
466
+ Run tests except system tests
466
467
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:
468
470
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
470
472
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:
472
474
473
- You can run multiple files and directories at the same time:
475
+ bin/rails test test/models/user_test.rb:10-20
474
476
475
- bin/rails test test/controllers test/integration/login_test.rb
477
+ You can run multiple files and directories at the same time:
476
478
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.
478
482
479
483
minitest options:
480
484
-h, --help Display this help.
481
485
--no-plugins Bypass minitest plugin auto-loading (or set $MT_NO_PLUGINS ).
482
486
-s, --seed SEED Sets random seed. Also via env. Eg: SEED=n rake
483
487
-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.
484
490
-n, --name PATTERN Filter run on /regexp/ or string.
485
491
--exclude PATTERN Exclude /regexp/ or string from run.
492
+ -S, --skip CODES Skip reporting of certain types of results (eg E).
486
493
487
494
Known extensions: rails, pride
488
495
-w, --warnings Run with Ruby warnings enabled
@@ -491,6 +498,7 @@ Known extensions: rails, pride
491
498
-d, --defer-output Output test failures and errors after the test run
492
499
-f, --fail-fast Abort test run on first failure or error
493
500
-c, --[no-]color Enable color in the output
501
+ --profile [COUNT] Enable profiling of tests and list the slowest test cases (default: 10)
494
502
-p, --pride Pride. Show your testing pride!
495
503
```
496
504
0 commit comments