Skip to content

TestRunListenerTest5.testThatLauncherLibGetsAdded fails since I20251026-0750 #2572

@iloveeclipse

Description

@iloveeclipse

TestRunListenerTest5.testThatLauncherLibGetsAdded fails since I20251026-0750 build (but actually before, just the builds were broken, see eclipse-platform/eclipse.platform.releng.aggregator#3430). Las worked in I20251024-0020.

Most likely combined result of eclipse-jdt/eclipse.jdt#146 / eclipse-jdt/eclipse.jdt@e5b600e and #2536 / 28fa254 (as the only test case is failing that is supposed to check whether specific junit-platform-launcher library is added if JUNIT5_CONTAINER_PATH is removed but the rest of JUnit 5 libraries are on classpath). Most likely test needs to add version ranges to JUnit libraries.

Note: the test works just fine in IDE / build I20251026-1800 is started with default settings, means something (most likely the installed bundles in platform) is different at tests runtime.

https://download.eclipse.org/eclipse/downloads/drops4/I20251026-1800/testresults/html/org.eclipse.jdt.ui.tests_ep438I-unit-linux-x86_64-java21_linux.gtk.x86_64_21.html

expected:<[sessionStarted-sessionName: ATestCase state: Running result: Undefined testCaseStarted-testCaseMethod: testSucceed class: pack.ATestCase state: Running result: Undefined testCaseFinished-testCaseMethod: testSucceed class: pack.ATestCase state: Completed result: OK sessionFinished-sessionName: ATestCase state: Completed result: OK ] > but was:<[AbstractTestRunListenerTest#launchJUnit(IJavaElement, TestRunLog) timed out] >

org.junit.ComparisonFailure: expected:<[sessionStarted-sessionName: ATestCase
state: Running
result: Undefined

testCaseStarted-testCaseMethod: testSucceed
class: pack.ATestCase
state: Running
result: Undefined

testCaseFinished-testCaseMethod: testSucceed
class: pack.ATestCase
state: Completed
result: OK

sessionFinished-sessionName: ATestCase
state: Completed
result: OK
]
> but was:<[AbstractTestRunListenerTest#launchJUnit(IJavaElement, TestRunLog) timed out]
>
at org.junit.Assert.assertEquals(Assert.java:117)
at org.junit.Assert.assertEquals(Assert.java:146)
at org.eclipse.jdt.junit.tests.AbstractTestRunListenerTest.assertEqualLog(AbstractTestRunListenerTest.java:249)
at org.eclipse.jdt.junit.tests.TestRunListenerTest5.testThatLauncherLibGetsAdded(TestRunListenerTest5.java:173)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingregressionRegression defect

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions