-
Notifications
You must be signed in to change notification settings - Fork 9
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
Allow running specific test with path/to/test.rb:loc
#47
Comments
I’m working on a really big change in the design first but I do plan to support this. |
Technically, minitest doesn't support running tests by line number, but it does support filtering tests on name:
I often do Now, Rails supports line filtering out of the box, but it's implemented via the above pattern support in minitest. When minitest loads, it populates the Rails overrides the passed in It looks like the code itself has gotten quite a bit more complex since I wrote it, but the essential logic is in |
minitest's rationale for test name based filtering is that the name is less likely to change versus the line number. That's not always the case though, and sometimes line number filtering is handy. I do prefer minitest's I'm not saying Quickdraw needs to support this, I just like this kind of code archeology 😄 — even if we may want to revisit things from scratch. |
Sometimes you just want to run a single test. Minitest and RSpec both support this, and I think it would be a good addition to Quickdraw! 🤠
The text was updated successfully, but these errors were encountered: