Bug 141503 - [JUnit] offer quick assist on tests to add/remove @Ignore
Summary: [JUnit] offer quick assist on tests to add/remove @Ignore
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Markus Keller CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-12 04:59 EDT by Markus Keller CLA
Modified: 2006-05-16 11:04 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Keller CLA 2006-05-12 04:59:59 EDT
Offer quick assist on tests to add/remove @Ignore. The quick assist should be available on all @Test methods in the CompilationUnitEditor, and on non-binary tests in the JUnitView.

It should remove @Ignore from ignored tests and add @Ignore to non-ignored tests. When adding @Ignore (from editor or from JUnit view), the editor should be activated, and the caret should be placed right after the @Ignore, ready for the user to enter an explanatory message.

In the JUnit view, both quick assists should also be available on multi-selection (do not open the editor in this case).
Comment 1 Martin Aeschlimann CLA 2006-05-16 10:44:21 EDT
'quick assist' seems the wrong here, typing in the editor is as fast as quick assist. But IMO it would make sense to have a context menu action on one or more tests, maybe also on a test case.
Comment 2 Markus Keller CLA 2006-05-16 11:04:25 EDT
The advantages of quick assists (in contrast to typing) is that they can also add/remove the import for @Ignore, and that they can show up and go away context-sensitively.

I agree that in the JUnit view, a context menu action is probably easier to find than a quick assist.