Bug 545732

Summary: Eclipse Gradle JUnit 5 - Run All Test pause before execution
Product: [Eclipse Project] JDT Reporter: Mario Kusek <mario.kusek>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: loskutov
Version: 4.11   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=540712
Whiteboard: stalebug

Description Mario Kusek CLA 2019-03-25 06:09:31 EDT
I am using following setup:
- Mac Air (13-inch), 2017 1.8 GHz Intel Core i5, 8GB RAM (macOS High Sierra v10.13.6)
- Java - openjdk version "11.0.2" 2019-01-15
- Eclipse - Version: 2019-03 (4.11.0), Build id: 20190314-1200


How to reproduce problem:
1. Install fresh copy of Eclipse Java IDE without any additional plugins.
2. Create fresh new workspace
3. Downloaded Gradle project form github: https://github.com/MarioKusek/Kata-TicTacToe
4. Import Gradle project
5. Creates Run Configuration for JUnit with following options
   - Name: TicTacToe [All tests]
   - Run all tests in selected project, package or source folder: src/test/java
   - Test runner: JUnit 5
6. Run configuration

It takes around 10-20 seconds of pause before it starts running tests. During this pause in the status line is following text: "Launching TicTacToe [All tests]: (57%)"

After that pause tests are run in 1-1.5 seconds.

When I run package as test configuration is also pauses. 
But when I run just one class as test configuration is starts almost instantly.
Comment 1 Andrey Loskutov CLA 2019-03-25 14:01:15 EDT
Probably bug 540712 related.
Comment 2 Eclipse Genie CLA 2021-03-15 15:30:52 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 3 Mario Kusek CLA 2021-03-16 03:38:26 EDT
Now my setup is different. 

- new computer MacBook Pro 2,3Ghz Quad Core Intel Core i7 with 32GB of RAM
- java - openjdk 11.0.10
- Eclipse 2020-12

I have refreshed libraries in the project and use gradle wrapper 6.8.3.

When I run All tests testnow run under 0.5 seconds. But there is lag before starting tests and it is around 1 second. During this pause in the status line is following text: "Launching java (1): (45%)"

This is ok now but I think that the most speed I got is from hardware. I can not run it in old hardware to see if it is fixed or not.
Comment 4 Eclipse Genie CLA 2023-03-15 14:28:41 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.