Bug 536728 - [JUnit] support launch configuration prototypes
Summary: [JUnit] support launch configuration prototypes
Status: CLOSED MOVED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.8   Edit
Hardware: All All
: P3 enhancement with 1 vote (vote)
Target Milestone: 4.24   Edit
Assignee: Gautier de SAINT MARTIN LACAZE CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-05 11:37 EDT by Stephan Herrmann CLA
Modified: 2024-04-17 12:38 EDT (History)
12 users (show)

See Also:


Attachments
screenshot of prototype tab for JUnit prototype (97.79 KB, image/png)
2020-02-17 04:21 EST, Gautier de SAINT MARTIN LACAZE CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stephan Herrmann CLA 2018-07-05 11:37:23 EDT
I have no idea how hard is it for jdt.junit to join the band wagon of bug 41353?

Would solving this in jdt.junit first also help PDE, or would that be independent?
Comment 1 Vikas Chandra CLA 2018-07-16 08:59:58 EDT
>>Would solving this in jdt.junit first also help PDE, or would that be >>independent?

I think a separate change is PDE will also be required just like launch config issue.

Axel, do you have any plans for this one for 4.9 or 4.10 ?
Comment 3 Eclipse Genie CLA 2020-02-17 04:16:21 EST
New Gerrit change created: https://git.eclipse.org/r/157800
Comment 4 Gautier de SAINT MARTIN LACAZE CLA 2020-02-17 04:19:28 EST
I started a patch about prototype for JUnit run / debug configurations. It's a WIP patch as I think there is more to do. 

I need some information about which labels to use for JUnit configuration attributes. 

* org.eclipse.jdt.junit.CONTAINER
* org.eclipse.jdt.junit.KEEPRUNNING_ATTR
* org.eclipse.jdt.junit.TESTNAME
* org.eclipse.jdt.junit.TEST_KIND

See the following screen shot for more informations.
Comment 5 Gautier de SAINT MARTIN LACAZE CLA 2020-02-17 04:21:47 EST
Created attachment 281835 [details]
screenshot of prototype tab for JUnit prototype
Comment 6 Gautier de SAINT MARTIN LACAZE CLA 2020-02-25 10:27:22 EST
Did someone have time to see this first version of run configuration prototype?

I don't know who is in charge of JUnit support so I didn't add a reviewer.
Comment 7 Noopur Gupta CLA 2020-02-25 10:52:59 EST
I will look at it for 4.16.
Comment 8 Noopur Gupta CLA 2020-02-25 10:56:04 EST
Also, requesting Roland to provide initial feedback.
Comment 9 Gautier de SAINT MARTIN LACAZE CLA 2020-02-25 13:06:32 EST
Thanks Noopur. 

If I create other JUnit patches, should I add you as a reviewer?
Comment 10 Roland Grunberg CLA 2020-03-06 10:51:07 EST
(In reply to Gautier de SAINT MARTIN LACAZE from comment #4)
> I started a patch about prototype for JUnit run / debug configurations. It's
> a WIP patch as I think there is more to do. 
> 
> I need some information about which labels to use for JUnit configuration
> attributes. 

From some research, here's a rough idea.

> * org.eclipse.jdt.junit.CONTAINER
"The Java element handle ID (if any)"

(See ./org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/launcher/JUnitLaunchConfigurationTab.java performApply() )

> * org.eclipse.jdt.junit.KEEPRUNNING_ATTR
"Keep JUnit running after test run when debugging"

(See org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/JUnitMessages.properties)


> * org.eclipse.jdt.junit.TESTNAME
"Test method name (if any)"

(See ./org.eclipse.jdt.junit.core/src/org/eclipse/jdt/internal/junit/launcher/JUnitLaunchConfigurationConstants.java ATTR_TEST_NAME)


> * org.eclipse.jdt.junit.TEST_KIND
"Unique ID for JUnit test kind"

(See org.eclipse.jdt.junit.core/src/org/eclipse/jdt/internal/junit/launcher/TestKindRegistry.java)
I would think this value can only be : org.eclipse.jdt.junit.loader.junit[3-5]
Comment 11 Gautier de SAINT MARTIN LACAZE CLA 2020-03-06 14:42:49 EST
Hello Roland, 

Thanks for your comment. 

I uploaded a new patch set on gerrit. I reused the label for `org.eclipse.jdt.junit.KEEPRUNNING_ATTR` and use `LegacyActionTools.removeMnemonics` to remove the mnemonic. Should I duplicate the value in another string without mnemonic?
Comment 12 Roland Grunberg CLA 2020-03-06 15:12:35 EST
(In reply to Gautier de SAINT MARTIN LACAZE from comment #11)
> Hello Roland, 
> 
> Thanks for your comment. 
> 
> I uploaded a new patch set on gerrit. I reused the label for
> `org.eclipse.jdt.junit.KEEPRUNNING_ATTR` and use
> `LegacyActionTools.removeMnemonics` to remove the mnemonic. Should I
> duplicate the value in another string without mnemonic?

The reason I didn't mention using existing labels directly is because I thought some of the explanations were more "descriptions" in that they're pretty long, and a few words could be removed here and there to shorten them.

With that said, after trying the Prototype Tab, it doesn't seem as bad as I thought, so if you're fine with the labels for the attributes, then that's fine.
Comment 13 Gautier de SAINT MARTIN LACAZE CLA 2020-05-05 11:47:53 EDT
Sorry, I was busy on another project. I'm fine with current labels.
Comment 14 Nathaniel Mishkin CLA 2021-03-17 14:08:05 EDT
This enhancement would be a big win for me and other people on the team I work with. What are the prospects of the patch that's attached to this bug being pushed through to completion and delivery?
Comment 15 Joern Guy Suess CLA 2021-10-01 01:31:57 EDT
I would like this too!
Comment 16 luis pizarro CLA 2022-01-10 18:43:36 EST
This feature would really help our team! please prioritize when possible :) Thanks!
Comment 17 Sarika Sinha CLA 2022-01-11 07:33:19 EST
@Gautier,
Can you explain the reason what will be the scenario where people will want to create common prototype for same Test Method Name or Java Element Handle ID?
Comment 18 Alexander Kurtakov CLA 2024-04-17 12:38:17 EDT
As bugzilla is dead, I've opened https://github.com/eclipse-jdt/eclipse.jdt.ui/issues/1333 and I'm closing this one.