Skip to content

Commit 9ba208c

Browse files
authored
Merge pull request rails#52497 from shouichi/add-run-by-line-range-section-to-contribution-guide
Add a section about running tests by line range in contribution guide
2 parents 25f86e2 + a0a50a3 commit 9ba208c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

guides/source/contributing_to_ruby_on_rails.md

+9
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,15 @@ $ cd railties
385385
$ bin/test test/application/asset_debugging_test.rb:69
386386
```
387387

388+
#### For a Specific Line Range
389+
390+
Similar tests are often defined in nearby locations. You can run tests in a specific line range.
391+
392+
```bash
393+
$ cd railties
394+
$ bin/test test/application/asset_debugging_test.rb:69-100
395+
```
396+
388397
#### Running Tests with a Specific Seed
389398

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

0 commit comments

Comments
 (0)