Skip to content

Sporadic JUnit launch test fails #2128

@trancexpress

Description

@trancexpress

E.g.: https://github.com/eclipse-pde/eclipse.pde/actions/runs/19343341779/job/55337112450?pr=2126

org.eclipse.pde.junit.runtime.tests.JUnitSuiteExecutionTest.executeProject[JUnit6] -- Time elapsed: 3.448 s <<< FAILURE!
java.lang.AssertionError: test completed with Error
	at org.eclipse.pde.junit.runtime.tests.JUnitExecutionTest.assertSuccessful(JUnitExecutionTest.java:144)
	at org.eclipse.pde.junit.runtime.tests.JUnitSuiteExecutionTest.executeProject(JUnitSuiteExecutionTest.java:95)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.eclipse.pde.ui.tests.runtime.TestUtils$1.evaluate(TestUtils.java:267)
	Suppressed: java.lang.AssertionError: FailureTrace of TestSuite: verification.tests.junit6.suite.TestSuite : Completed - Error (0):

org.junit.platform.suite.engine.NoTestsDiscoveredException: Suite [verification.tests.junit6.suite.TestSuite] did not discover any tests
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133)
	at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1939)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
	at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
org.eclipse.pde.junit.runtime.tests.JUnitSuiteExecutionTest.executePackage[JUnit6] -- Time elapsed: 0.081 s <<< FAILURE!
java.lang.AssertionError: 
[error markers in P/verification.tests.junit6.suite] 
Expecting empty but was: [Marker [on: /verification.tests.junit6.suite/src/verification/tests/junit6/suite/TestSuite.java, id: 153, type: org.eclipse.jdt.core.problem, severity: ERROR(2), attributes: [arguments: 1:org.junit, categoryId: 30, charEnd: 643, charStart: 634, id: 268435846, lineNumber: 16, message: The import org.junit cannot be resolved, sourceId: JDT], created: 11/13/25, 7:50?PM],
    Marker [on: /verification.tests.junit6.suite/src/verification/tests/junit6/suite/TestSuite.java, id: 154, type: org.eclipse.jdt.core.problem, severity: ERROR(2), attributes: [arguments: 1:org.junit, categoryId: 30, charEnd: 695, charStart: 686, id: 268435846, lineNumber: 17, message: The import org.junit cannot be resolved, sourceId: JDT], created: 11/13/25, 7:50?PM],
    Marker [on: /verification.tests.junit6.suite/src/verification/tests/junit6/suite/TestSuite.java, id: 155, type: org.eclipse.jdt.core.problem, severity: ERROR(2), attributes: [arguments: 1:Suite, categoryId: 40, charEnd: 731, charStart: 726, id: 16777218, lineNumber: 19, message: Suite cannot be resolved to a type, sourceId: JDT], created: 11/13/25, 7:50?PM],
    Marker [on: /verification.tests.junit6.suite/src/verification/tests/junit6/suite/TestSuite.java, id: 156, type: org.eclipse.jdt.core.problem, severity: ERROR(2), attributes: [arguments: 1:SelectClasses, categoryId: 40, charEnd: 747, charStart: 734, id: 16777218, lineNumber: 20, message: SelectClasses cannot be resolved to a type, sourceId: JDT], created: 11/13/25, 7:50?PM],
    Marker [on: /verification.tests.junit6.suite/src/verification/tests/junit6/suite/TestSuite.java, id: 157, type: org.eclipse.jdt.core.problem, severity: ERROR(2), attributes: [arguments: 1:verification.tests.junit6.Test1, categoryId: 40, charEnd: 781, charStart: 750, id: 16777218, lineNumber: 20, message: verification.tests.junit6.Test1 cannot be resolved to a type, sourceId: JDT], created: 11/13/25, 7:50?PM],
    Marker [on: /verification.tests.junit6.suite/src/verification/tests/junit6/suite/TestSuite.java, id: 158, type: org.eclipse.jdt.core.problem, severity: ERROR(2), attributes: [arguments: 1:verification.tests.junit6.Test2, categoryId: 40, charEnd: 820, charStart: 789, id: 16777218, lineNumber: 20, message: verification.tests.junit6.Test2 cannot be resolved to a type, sourceId: JDT], created: 11/13/25, 7:50?PM]]
	at org.eclipse.pde.junit.runtime.tests.TestExecutionUtil.runTest(TestExecutionUtil.java:64)
	at org.eclipse.pde.junit.runtime.tests.JUnitSuiteExecutionTest.executePackage(JUnitSuiteExecutionTest.java:87)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.eclipse.pde.ui.tests.runtime.TestUtils$1.evaluate(TestUtils.java:267)

We should look into this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions