Bug 549471 - Junit run configuration fails to see/find a Kotlint test class
Summary: Junit run configuration fails to see/find a Kotlint test class
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.12   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-22 22:32 EDT by L C CLA
Modified: 2023-07-04 11:33 EDT (History)
0 users

See Also:


Attachments
Junit run configuration error message (93.22 KB, image/png)
2019-07-22 22:32 EDT, L C CLA
no flags Details
Junit run configuration dependencies (104.72 KB, image/png)
2019-07-22 22:33 EDT, L C CLA
no flags Details
Junit run configuration for Java test class (notice that there is NO ERROR here) (103.42 KB, image/png)
2019-07-22 22:50 EDT, L C CLA
no flags Details
Java application run configuration for Kotlin tests, runs without issues (78.02 KB, image/png)
2019-07-23 12:32 EDT, L C CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description L C CLA 2019-07-22 22:32:49 EDT
Created attachment 279367 [details]
Junit run configuration error message

When setting up a Junit 4 run configuration in Eclipse for my Java/Kotlin project, Eclipse UI says that "Can not find test class 'test.KotlinTestsRunner' in project 'Kgt-4' even though the 'test.KotlinTestsRunner' class is where it's supposed to be and the run configuration dependencies have been properly set up (see the enclosed pics).

$ ls -l Kgt-4/build/classes/kotlin/test/test/KotlinTestsRunner.class 
-rw-r--r-- 1 luser luser 762 Jul 21 13:02 Kgt-4/build/classes/kotlin/test/test/KotlinTestsRunner.class
Comment 1 L C CLA 2019-07-22 22:33:50 EDT
Created attachment 279368 [details]
Junit run configuration dependencies
Comment 2 L C CLA 2019-07-22 22:47:56 EDT
Just to clarify, 'test.KotlinTestsRunner' class is a Kotlin class that runs the project's Kotlin tests.

The project also has some Java tests that are run using 'test.JavaTestsRunner' class and Junit run configuration has no problem seeing/finding and running Java tests (see attachment 3 [details]).
Comment 3 L C CLA 2019-07-22 22:50:06 EDT
Created attachment 279369 [details]
Junit run configuration for Java test class (notice that there is NO ERROR here)

(notice that there is NO ERROR here for Java test class)
Comment 4 L C CLA 2019-07-22 22:55:27 EDT
$ ls -l Kgt-4/build/classes/java/test/test/JavaTestsRunner.class 
-rw-r--r-- 1 luser luser 666 Jul 21 13:02 Kgt-4/build/classes/java/test/test/JavaTestsRunner.class
Comment 5 L C CLA 2019-07-23 12:32:32 EDT
Created attachment 279375 [details]
Java application run configuration for Kotlin tests, runs without issues
Comment 6 L C CLA 2019-07-23 12:38:47 EDT
More info: If I create a Java Application run configuration (see attachment 4 [details] above) with the same Dependencies as shown in the attachment 2 [details] above it has no problems finding and running the test.KotlinTests class.
Comment 7 Eclipse Genie CLA 2021-07-13 15:06:28 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 8 Eclipse Genie CLA 2023-07-04 11:33:18 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.