Skip to content

JUnit import packages are missing version bound in org.eclipse.cdt.core.tests #1487

Description

@DangMinhTam382

Describe the bug
JUnit import packages in org.eclipse.cdt.core.tests are missing maximum version bound, making org.eclipse.cdt.core.testplugin.util.BaseTestCase5.class always run test on latest JUnit version in local environment causing JUnit runner mismatch when running a derived test class with a lower JUnit version

To Reproduce
Steps to reproduce the behavior:

  1. Make sure Local environment has 2 JUnit version (5 and 6)
  2. Run a test class that derived from org.eclipse.cdt.core.testplugin.util.BaseTestCase5.class with JUnit 5 (Ex: CMakeBuildConfigurationTests.java)
  3. Test case fails due to BaseTestCase5.class didn't setup correctly (@BeforeEach setupBase(TestInfo) method not called)

Expected behavior
@beforeeach setupBase(TestInfo) is called.

Version Information (please complete the following information):

  • OS and OS Version/extra details: Windows
  • Eclipse Version from Help: 2026-06 (4.40.0). Build id: 20260604-0653
  • CDT Version from Help: 12.5.0

Additional context
Adding maximum version bound (6.0.0) for JUnit related imported plugins in org.eclipse.cdt.core.tests fix this issue

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