Skip to content

Pr 2013#2029

Closed
merks wants to merge 5 commits intoeclipse-pde:masterfrom
merks:pr-2013
Closed

Pr 2013#2029
merks wants to merge 5 commits intoeclipse-pde:masterfrom
merks:pr-2013

Conversation

@merks
Copy link
Contributor

@merks merks commented Oct 18, 2025

Fix problems in JUnitLaunchRequirements

  • The JUNIT5_VERSIONS VersionRange should be [1, 6) because [1, 5) excludes Junit 5.
  • The case for TestKindRegistry.JUNIT5_TEST_KIND_ID should add JUNIT5_JDT_RUNTIME_PLUGIN not JUNIT4_JDT_RUNTIME_PLUGIN.
  • The search range new VersionRange(VersionRange.LEFT_OPEN, version, version, VersionRange.RIGHT_OPEN)) is always empty so should use newVersionRange(VersionRange.LEFT_CLOSED, version, version, VersionRange.RIGHT_CLOSED)).

trancexpress and others added 5 commits October 18, 2025 00:00
This change adjusts JUnitLaunchConfigurationDelegate,
to use bundle versions when adding required JUnit bundles.

E.g. when adding JUnit bundles for a JUnit 5 test, JUnit 5 versions are added.

This avoids conflicts when both JUnit 5 and JUnit 6 bundles are in the platform,
since they share symbolic names.

Fixes: eclipse-pde#2006
- Move code a bit around, trying to simplify it a bit
- Implement version handling when looking up dependencies in host
- Avoid unnecessary code
- Add TODOs
- The JUNIT5_VERSIONS VersionRange should be [1, 6) because [1, 5)
excludes Junit 5.
- The case for TestKindRegistry.JUNIT5_TEST_KIND_ID should add
JUNIT5_JDT_RUNTIME_PLUGIN not JUNIT4_JDT_RUNTIME_PLUGIN.
- The search range `new VersionRange(VersionRange.LEFT_OPEN, version,
version, VersionRange.RIGHT_OPEN))` is always empty so should use `new
VersionRange(VersionRange.LEFT_CLOSED, version, version,
VersionRange.RIGHT_CLOSED))`.
@HannesWell
Copy link
Member

This is now in-cooperated into #2013.
Thank you for your help!

@HannesWell HannesWell closed this Oct 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants