Bug 401125

Summary: [JUnit] Add support to include/exclude Tests from JUnit run
Product: [Eclipse Project] JDT Reporter: Ulrich Grave <ulrich.grave>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: ASSIGNED --- QA Contact:
Severity: enhancement    
Priority: P3 CC: daniel_megert
Version: 4.3   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard: Kepler+
Attachments:
Description Flags
JUnit Launcher Configuration
none
Example Project with launchers none

Description Ulrich Grave CLA 2013-02-18 15:27:08 EST
Hello,
I need a feature to exclude specefic tests from "Run on Project" JUnit launch.
So start imeplementing a first version to exclude or include tests from JUnit container launcher.

The source can be found on my GIT fork on github:
https://github.com/ugrave/eclipse.jdt.ui

I would be nice if eclipse can supports a feature like this.
Comment 1 Dani Megert CLA 2013-02-19 03:32:51 EST
(In reply to comment #0)
> Hello,
> I need a feature to exclude specefic tests from "Run on Project" JUnit
> launch.
> So start imeplementing a first version to exclude or include tests from
> JUnit container launcher.
> 
> The source can be found on my GIT fork on github:
> https://github.com/ugrave/eclipse.jdt.ui
> 
> I would be nice if eclipse can supports a feature like this.

Can provide more details of the feature, like screenshots or documentation?
Comment 2 Ulrich Grave CLA 2013-02-19 13:35:59 EST
Created attachment 227278 [details]
JUnit Launcher Configuration
Comment 3 Ulrich Grave CLA 2013-02-19 13:36:35 EST
Created attachment 227279 [details]
Example Project with launchers
Comment 4 Ulrich Grave CLA 2013-02-19 13:40:25 EST
Add a screehschot of the modified JUnit launcher tab. Here you can define a patten for test which should be include or exclude. If the filter field is empty all tests will be executed.
See also the example project which contains example launch configurations.
Comment 5 Dani Megert CLA 2013-02-20 03:53:32 EST
The UI would need some polish but otherwise it looks useful to me.

Currently we are very busy with Java 8 work, but it is something we could try to include in the next release (not Kepler).