Skip to content

Commit

Permalink
Merge pull request #48442 from zzak/contrib-guide-run-single-test
Browse files Browse the repository at this point in the history
Add note about running tests at a specific line
  • Loading branch information
zzak committed Jun 10, 2023
2 parents 18acbe8 + 11213ce commit bb8f1cf
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions guides/source/contributing_to_ruby_on_rails.md
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,15 @@ $ cd actionmailer
$ bin/test test/mail_layout_test.rb -n test_explicit_class_layout
```

#### For a Specific Line

Figuring out the name is not always easy, but if you know the line number your test starts at, this option is for you:

```bash
$ cd railties
$ bin/test test/application/asset_debugging_test.rb:69
```

#### Running Tests with a Specific Seed

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

0 comments on commit bb8f1cf

Please sign in to comment.