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:
- Make sure Local environment has 2 JUnit version (5 and 6)
- Run a test class that derived from org.eclipse.cdt.core.testplugin.util.BaseTestCase5.class with JUnit 5 (Ex: CMakeBuildConfigurationTests.java)
- 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
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:
@BeforeEach setupBase(TestInfo)method not called)Expected behavior
@beforeeach setupBase(TestInfo) is called.
Version Information (please complete the following information):
Additional context
Adding maximum version bound (6.0.0) for JUnit related imported plugins in org.eclipse.cdt.core.tests fix this issue