Run / Debug Test Commands for Key Binding
It would be nice to have Commands in key bindings for Run Test and Debug Test.
That's to say?
Maybe I was not clear. When I am writing new test in a test class I usually first run test for the test method that I am writing. Now I am doing it by clicking on Run or Debug button/link before method. I would like to be able to run it with shortcuts. To do so in Key Bindings in Preferences need to be Command to which I can associate key binding.
But if you have several tests methods, which test you wish to execute?
I don't understand the link with code mining?
But if you have several tests methods, which test you wish to execute?
Shortcut (key binding) should run method where the cursor is. E.g. in test class are two methods: textX and testY and I am writing code in method testY. So my cursor is in the body of method testY. If I type shortcut for running test method plugin should find where my cursor is and if it is in test method it runs JUnit with only that test method.
I don't know if this is something that is easiliy done or not.
I don't understand the link with code mining?
The link is that since code mining plugin is detecting test methods and provide buttons/links for running or debugging them my idea was to not use click to run/debug test but to use shortcut. I don't know if this is something that code mining plugin should do but this would be practical thing when writing tests. Besides that is was mentioned in https://bugs.eclipse.org/bugs/show_bug.cgi?id=541277#c4