I was able to configure a keyboard shortcut to run all project tests with the following configuration at keybindings.json.
(...)
{
"key": "ctrl+t",
"command": "java.test.explorer.run",
"when": "resourceLangId == java"
}
(...)
But I want to be able to configure 2 more shortcuts to:
Is there a way to do so?
@franciscocpg Unfortunately, there is no way to do this for now.
We will consider adding this support in the future.
Would be also nice to be able to configure shortcut to re-run last "Run test" command
Would be also nice to be able to configure shortcut to re-run last "Run test" command
I'm considering writing a PR to do exactly this. Would the Test Runner team be open to a PR like that?
@JasonHenriksen All the contributions are welcome! Please go ahead!
Hi @JasonHenriksen, is everything works fine? Is there anything I can help with?
I've been busy with a time critical project, but I'm hoping to start writing a PR soon. I used to write a lot of eclipse plugins, but I haven't written a VS Code plugin yet. I'm looking forward to learning how!
Some new commands are introduced in the next release version 0.24.0, which you can set shortcuts for them:
java.test.show.reportjava.test.relaunchHi, any idea when this could be implemented? I see it is in backlog, just asking if you are at least considering this in near future.
@baldimir The next release will have a new command to run the test in the current editing file. See: #1066
Thanks, so what is left is a command to run a specific test from a file.
New commands added in the 0.25.0 to run/debug the tests in current file:
Most helpful comment
@franciscocpg Unfortunately, there is no way to do this for now.
We will consider adding this support in the future.