Skip to content

Fix console launcher --uid option #4587

Closed
@sormuras

Description

@sormuras

The discussion in #4583 combined with the linked issue eclipse-jdt/eclipse.jdt.core#4053 shows that two bugs are hiding here. One is in JUnit:

When...

      --uid, --select-unique-id=UNIQUE-ID...
                             Select a unique id for test discovery. This option can be
                               repeated.

...is used as the sole selector, the console launcher shows a false error message reading:

Please specify an explicit selector option or use `--scan-class-path` or `--scan-modules`

There exists a work-around, though. Use --select uid:UNIQUE-ID... to prevent the error to happen.

According to what I read from eclipse-jdt/eclipse.jdt.core#4053, the other bug seems to be in ecj and therefore cannot be addressed here.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions