Menu

#81 Re-use "run junit test" keybindings

Version 3.0.3
open
nobody
5
2014-12-11
2014-12-10
No

Ctrl-R makes the Shift-Alt-X T "Run JUnit test" binding somewhat redundant. I've changed my local bindings to match my muscle memory so that Shift-Alt-X T is bound to the MoreUnit "Run Tests" command.

I would also like Shift-Alt-D T "Debug JUnit Test" and Shift-Alt-E T "Coverage JUnit Test" to work from the class under test.

Perhaps MoreUnit could just generalise the existing commands so they work from the class under test, rather than adding its own specific command?

Discussion

  • Nicolas Demengel

    Hi Philip,

    Unfortunately, as far as I know, we can't just replace another existing action nor steal its binding. We could declare the same default binding, but that would cause a conflict that will be presented to the user when she uses the shortcut. Plus, I bet that it would annoy a lot of users that do want to keep the original action. Also, we liked the simplicity of Ctrl+R which in our opinion is far easier to hit than Shift+Alt+X T. Finally, it allowed us to present the same shortcut to both JUnit and TestNG users.

    As for adding support for Debug and Coverage, we considered it but we already had a hard time finding how to use the existing Run action, so we stopped there, as we thought they were less frequent uses. Also executing third party actions such as Coverage may be somewhat harder, depending on whether the third party plugin exposes an API for that purpose or not.
    That said, implementing the Debug action might be easily feasible, but once again that would mean propose a new action for it and not replace the existing one.

    Regards,
    Nicolas

     
  • Philip Aston

    Philip Aston - 2014-12-11

    Thanks Nicolas.

    Yes, I suspected it might not be straightforward. Having the alternative actions helps. For now, I'm learning to type "Ctrl-J Shift+Alt+E" :-)

     

Log in to post a comment.