Skip to content

Commit bb8f1cf

Browse files
authored
Merge pull request rails#48442 from zzak/contrib-guide-run-single-test
Add note about running tests at a specific line
2 parents 18acbe8 + 11213ce commit bb8f1cf

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

guides/source/contributing_to_ruby_on_rails.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,15 @@ $ cd actionmailer
396396
$ bin/test test/mail_layout_test.rb -n test_explicit_class_layout
397397
```
398398

399+
#### For a Specific Line
400+
401+
Figuring out the name is not always easy, but if you know the line number your test starts at, this option is for you:
402+
403+
```bash
404+
$ cd railties
405+
$ bin/test test/application/asset_debugging_test.rb:69
406+
```
407+
399408
#### Running Tests with a Specific Seed
400409

401410
Test execution is randomized with a randomization seed. If you are experiencing random

0 commit comments

Comments
 (0)