Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support filtering tests by line ranges #48807

Merged
merged 1 commit into from Aug 1, 2023

Conversation

shouichi
Copy link
Contributor

The new syntax allows you to filter tests by line ranges. For example, the following command runs tests from line 10 to 20.

$ rails test test/models/user_test.rb:10-20

@rails-bot rails-bot bot added the railties label Jul 26, 2023
The new syntax allows you to filter tests by line ranges. For example, the
following command runs tests between line 10 to 20.

```bash
$ rails test test/models/user_test.rb:10-20
```

Co-authored-by: Seonggi Yang <seonggi.yang@gmail.com>
Co-authored-by: Ryohei UEDA <ueda@anipos.co.jp>
Co-authored-by: oljfte <oljfte@gmail.com>
@byroot
Copy link
Member

byroot commented Aug 1, 2023

I like it. Thanks!

@byroot byroot merged commit 741cd18 into rails:main Aug 1, 2023
9 checks passed
@shouichi shouichi deleted the rails-test-line-range branch August 1, 2023 07:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants