Bug 566821 - [JUnit] Extend the cursor position area for running a single test method
Summary: [JUnit] Extend the cursor position area for running a single test method
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.16   Edit
Hardware: All All
: P3 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-09 13:03 EDT by Gerold Broser CLA
Modified: 2020-09-17 23:48 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gerold Broser CLA 2020-09-09 13:03:21 EDT
At the moment (2020-06) a single test method can be run from within a test class by:

• selecting the complete method name (e.g. with a double-click on it) or
• placing the cursor at a position from immediately before the method name to immediately after the method name

prior to selecting Run As → JUnit Test.

It would be more convenient if the "hot" area would reach:

• from after the last newline before the first method annotation, e.g.:

<NL>
│  @Test
   @DisplayName("...")
   testMethod() {
     ... test method code ...

• to immediately after the test method closing brace

     ... test method code ...
   }│

(where '│' represents the cursor here).