Bug 401125 - [JUnit] Add support to include/exclude Tests from JUnit run
Summary: [JUnit] Add support to include/exclude Tests from JUnit run
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.3   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard: Kepler+
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-18 15:27 EST by Ulrich Grave CLA
Modified: 2013-02-20 03:53 EST (History)
1 user (show)

See Also:


Attachments
JUnit Launcher Configuration (84.64 KB, image/png)
2013-02-19 13:35 EST, Ulrich Grave CLA
no flags Details
Example Project with launchers (6.22 KB, application/zip)
2013-02-19 13:36 EST, Ulrich Grave CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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).