Bug 559125

Summary: [JUnit] Support running multiple selected test files
Product: [Eclipse Project] JDT Reporter: Pierre-Yves Bigourdan <pyvesdev>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: noopur_gupta
Version: 4.14   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Cannot run tests for multi select none

Description Pierre-Yves Bigourdan CLA 2020-01-13 14:19:26 EST
Created attachment 281476 [details]
Cannot run tests for multi select

Eclipse currently supports running JUnit contained in a single file, package, project, etc. However, when selecting multiple test files in the Package/Project Explorer, there is no option to run these files as JUnit tests (see attached screenshot).

When working on a small project, you can either run test files one by one or run the whole package, but on much bigger projects these workarounds become unpractical.
Comment 1 Noopur Gupta CLA 2020-01-14 00:33:03 EST
Similar to bug 111126.

*** This bug has been marked as a duplicate of bug 111126 ***
Comment 2 Pierre-Yves Bigourdan CLA 2020-01-14 02:12:22 EST
(In reply to Noopur Gupta from comment #1)
> Similar to bug 111126.
> 
> *** This bug has been marked as a duplicate of bug 111126 ***

Not convinced it's a duplicate. That bug is about running multiple projects at a time, which has challenges mainly around handling different classpaths for each project.

Here the use case is fairly different: rather than running everything in multiple projects, I'm requesting to be able to run a subset within a single project. The classpath problem does not apply here and I suspect the implementation would potentially look quite different - as well as probably simpler.
Comment 3 Noopur Gupta CLA 2020-01-14 02:22:09 EST
bug 29658 would be the right duplicate.

*** This bug has been marked as a duplicate of bug 29658 ***