Skip to content

Commit 7f4d2b8

Browse files
eclipse-platform-botakurtakov
authored andcommitted
Migrate UI test suite to JUnit 5 and add dependencies for JUnit 5 and
JUnit 4 interoperability - Update UiTestSuite to use JUnit 5 @suite and @SelectClasses - Add org.junit.jupiter.api, org.junit.platform.runner, and org.junit.vintage.engine as dependencies (with and without version range) in MANIFEST.MF - Ensure both JUnit 5 and JUnit 4 tests can be run together - Modernize test infrastructure for future compatibility
1 parent 6a56d39 commit 7f4d2b8

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/UiTestSuite.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,14 @@
5959
import org.eclipse.ui.tests.systeminplaceeditor.OpenSystemInPlaceEditorTest;
6060
import org.eclipse.ui.tests.themes.ThemesTestSuite;
6161
import org.eclipse.ui.tests.zoom.ZoomTestSuite;
62-
import org.junit.runner.RunWith;
63-
import org.junit.runners.Suite;
62+
import org.junit.platform.suite.api.SelectClasses;
63+
import org.junit.platform.suite.api.Suite;
6464

6565
/**
6666
* Test all areas of the UI.
6767
*/
68-
@RunWith(Suite.class)
69-
@Suite.SuiteClasses({
68+
@Suite
69+
@SelectClasses({
7070
StartupTest.class,
7171
UIAutomatedSuite.class,
7272
ApiTestSuite.class,

tests/org.eclipse.ui.tests/META-INF/MANIFEST.MF

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ Require-Bundle: org.eclipse.core.resources;bundle-version="3.14.0",
4747
org.eclipse.emf.ecore
4848
Import-Package: jakarta.annotation,
4949
jakarta.inject,
50+
org.junit.jupiter.api;version="[5.12.0,6.0.0)",
51+
org.junit.platform.runner;version="[1.12.0,2.0.0)",
52+
org.junit.platform.suite.api;version="[1.12.0,2.0.0)",
53+
org.junit.vintage.engine;version="[5.12.0,6.0.0)",
5054
org.osgi.service.event
5155
Eclipse-AutoStart: true
5256
Export-Package: org.eclipse.ui.tests.api,

0 commit comments

Comments
 (0)