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

Find and run closest test case and test suite near point #72

Open
zhenwenc opened this issue Jan 27, 2020 · 1 comment
Open

Find and run closest test case and test suite near point #72

zhenwenc opened this issue Jan 27, 2020 · 1 comment

Comments

@zhenwenc
Copy link

Is your feature request related to a problem? Please describe.

It would be great to support finding the closest test case and test suite near the cursor, so that we can use bloop to run a test conveniently while coding.

Describe the solution you'd like

As an Emacs user, I usually execute this kind of commands with compilation mode, therefore I would like metals to only return the closest test case / test suite, so that I can build and run a custom command (either with bloop or sbt).

Maybe related to #64

Search terms:

spec,test

@tgodzik
Copy link
Contributor

tgodzik commented Jan 28, 2020

Great idea! I think that should be doable via executeCommand - something like metals.run - we could find out if we are inside a class/object that can run or test and then run that.

Not 100% on the details, but maybe @marek1840 can chime in?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants