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

Run / Debug Test Commands for Key Binding #89

Open
MarioKusek opened this issue Nov 19, 2018 · 4 comments
Open

Run / Debug Test Commands for Key Binding #89

MarioKusek opened this issue Nov 19, 2018 · 4 comments

Comments

@MarioKusek
Copy link

It would be nice to have Commands in key bindings for Run Test and Debug Test.

@angelozerr
Copy link
Owner

That's to say?

@MarioKusek
Copy link
Author

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.

@angelozerr
Copy link
Owner

But if you have several tests methods, which test you wish to execute?

I don't understand the link with code mining?

@MarioKusek
Copy link
Author

MarioKusek commented Nov 19, 2018

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

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