Skip to content

Remove sorting parameter from ConfigurationSessionTestSuite #903#1356

Merged
akurtakov merged 2 commits intoeclipse-platform:masterfrom
HeikoKlare:sessiontestsuite-remove-sorted
Jun 12, 2025
Merged

Remove sorting parameter from ConfigurationSessionTestSuite #903#1356
akurtakov merged 2 commits intoeclipse-platform:masterfrom
HeikoKlare:sessiontestsuite-remove-sorted

Conversation

@HeikoKlare
Copy link
Copy Markdown
Contributor

The ConfigurationSessionTestSuite sorts the test methods by default. A field identifies whether sorting is activated, but the field cannot even be set but is always true. So, this parameterization is completely obsolete and only introduces unnecessary complexity to the session test framework.

This unnecessary complexity in the JUnit 3 implementation of session tests complicates their migration to JUnit 5. I propose to incrementally remove all unused functionality from the JUnit 3 session test implementation while migrating the actual test classes to the JUnit 5 equivalent and incrementally enhancing the JUnit 5 implementation with what is required. This applies one step of that incremental removal of unused functionality in the JUnit 3 implementation of session tests.

Contributes to #903

❗This removal becomes particularly useful when also #1354 removing shared session support is applied, as in combination even more code can be removed due to conditions becoming empty.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented May 10, 2024

Test Results

 1 764 files   1 764 suites   1h 26m 5s ⏱️
 4 381 tests  4 357 ✅  24 💤 0 ❌
13 143 runs  12 976 ✅ 167 💤 0 ❌

Results for commit a45cdcb.

♻️ This comment has been updated with latest results.

@HeikoKlare HeikoKlare marked this pull request as ready for review May 12, 2024 16:23
Copy link
Copy Markdown
Member

@fedejeanne fedejeanne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@HeikoKlare HeikoKlare force-pushed the sessiontestsuite-remove-sorted branch from 7163c9e to 969aac6 Compare July 4, 2024 15:54
…latform#903

The ConfigurationSessionTestSuite sorts the test methods by default. A
field identifies whether sorting is activated, but the field cannot even
be set but is always true. So, this parameterization is completely
obsolete and only introduces unnecessary complexity to the session test
framework.

Contributes to
eclipse-platform#903
@akurtakov akurtakov force-pushed the sessiontestsuite-remove-sorted branch from 969aac6 to 5037f86 Compare June 6, 2025 08:58
@eclipse-platform-bot
Copy link
Copy Markdown
Contributor

This pull request changes some projects for the first time in this development cycle.
Therefore the following files need a version increment:

runtime/tests/org.eclipse.core.tests.harness/META-INF/MANIFEST.MF

An additional commit containing all the necessary changes was pushed to the top of this PR's branch. To obtain these changes (for example if you want to push more changes) either fetch from your fork or apply the git patch.

Git patch
From 0fce82bfde24878ad96849d55dc0ae6822238d7c Mon Sep 17 00:00:00 2001
From: Eclipse Platform Bot <platform-bot@eclipse.org>
Date: Fri, 6 Jun 2025 09:03:09 +0000
Subject: [PATCH] Version bump(s) for 4.37 stream


diff --git a/runtime/tests/org.eclipse.core.tests.harness/META-INF/MANIFEST.MF b/runtime/tests/org.eclipse.core.tests.harness/META-INF/MANIFEST.MF
index 960ca86689..73c195feab 100644
--- a/runtime/tests/org.eclipse.core.tests.harness/META-INF/MANIFEST.MF
+++ b/runtime/tests/org.eclipse.core.tests.harness/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
 Bundle-ManifestVersion: 2
 Bundle-Name: Eclipse Core Tests Harness
 Bundle-SymbolicName: org.eclipse.core.tests.harness;singleton:=true
-Bundle-Version: 3.17.200.qualifier
+Bundle-Version: 3.17.300.qualifier
 Bundle-Vendor: Eclipse.org
 Export-Package: org.eclipse.core.tests.harness;version="2.0",
  org.eclipse.core.tests.harness.session,
-- 
2.49.0

Further information are available in Common Build Issues - Missing version increments.

@akurtakov akurtakov merged commit e5db590 into eclipse-platform:master Jun 12, 2025
18 checks passed
@HeikoKlare HeikoKlare deleted the sessiontestsuite-remove-sorted branch December 30, 2025 19:05
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