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

Is there a way to trigger execution of a class (ScalaTest usecase) #1

Open
oscarvarto opened this issue Mar 30, 2024 · 3 comments
Open

Comments

@oscarvarto
Copy link

oscarvarto commented Mar 30, 2024

Hi!

I just found this amazing project and I am really happy that it has started. Is there a way to trigger execution of a ScalaTest class (or a maybe a "Main" class)? For the moment, the only way to do it "from Zed" is to open a terminal, then use sbt's testOnly, but typing the whole name of the class is somewhat impractical (takes a lot of time for me).

Thanks so much again!

@bishabosha
Copy link

the same with main methods. I guess first point would be to identify if Zed supports this for other languages.

@bishabosha
Copy link

another way is to configure tasks, e.g. in command palette look for "zed: open local tasks", then you can create a task to run scala-cli test command, also allowing to configure environment variables etc - but this is still primitive.

@filipwiech
Copy link

filipwiech commented May 9, 2024

The support for detecting and running tests from the gutter started to appear in Zed very recently, see the following pull requests:

It is based on tree-sitter grammar though, which I imagine might be tricky to use for Scala? 🤔

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

3 participants