How to use console launcher --uid option? #4583
-
|
Hi all, I'm trying to understand how to use the I have two classes: I compile them with: The structure of the current directory is: Then I try to execute one of the test methods via the following commands: This lists the UID of the test as This then finds nothing. What am I doing wrong here? Best regards, Background: I'm looking into an Eclipse JUnit 5 related bug: https://github.com/eclipse-jdt/eclipse.jdt.ui/issues/2235 Eclipse build a request via: The used UID seems right to me: But the execution fails if the base class (see snippet above) is package private: I'm trying to figure out if Eclipse is doing something wrong or if this is a JUnit 5 bug. For that I was hoping to run the JUnit 5 |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
|
I was able to move forward with my initial problem, using a snippet similar to the one found here: #3693 I.e. defining a main method and running that. It would still be nice to know how to use the console launcher for this, but I could progress with my work without this. |
Beta Was this translation helpful? Give feedback.
-
This use-case unearthed two issue: the one about Thanks for starting this discussion! |
Beta Was this translation helpful? Give feedback.
-
|
Thank you for looking into this! I.e. the invocation should look like this (assuming the jar version has the fix for #4587)? |
Beta Was this translation helpful? Give feedback.
-
|
Yes. You can call it already without the patch being released, via the |
Beta Was this translation helpful? Give feedback.
Yes.
You can call it already without the patch being released, via the
--select "uid:[...]". That generic selector is part of the "explicit selector set". Also assuming you usejavacto compile the classes.