Skip to content

Move exception verification into a dedicated JUnit5 extension #1654 - #1657

Merged
ptziegler merged 1 commit into
eclipse-windowbuilder:masterfrom
ptziegler:issue1654
Oct 26, 2026
Merged

ptziegler merged 1 commit into
eclipse-windowbuilder:masterfrom
ptziegler:issue1654

Conversation

@ptziegler

Copy link
Copy Markdown
Contributor

When cleaning up after a test case, it is checked whether any exception has been logged by the WindowBuilder logger. If so, the test fails, even if all checks were successful. Doing so risks resources being left, if the tear-down phase is interrupted prematurely. Instead, this validation should be done with a dedicated extension.

Contributes to
#1654

@ptziegler ptziegler added this to the 1.26.0 milestone Sep 30, 2026
@github-actions

github-actions Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

Test Results

     4 files  ±0       4 suites  ±0   2h 21m 21s ⏱️ + 12m 49s
 7 020 tests ±0   6 990 ✅ +1  30 💤 ±0  0 ❌ ±0 
23 684 runs  ±0  23 588 ✅ +1  96 💤 ±0  0 ❌ ±0 

Results for commit 32ac669. ± Comparison against base commit b57e8e6.

♻️ This comment has been updated with latest results.

Comment thread org.eclipse.wb.tests/src/org/eclipse/wb/tests/utils/PlatformLogExtension.java Outdated
Comment thread org.eclipse.wb.tests/src/org/eclipse/wb/tests/utils/PlatformLogExtension.java Outdated

@vogella vogella left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice. A few nits

…-windowbuilder#1654

When cleaning up after a test case, it is checked whether any exception
has been logged by the WindowBuilder logger. If so, the test fails, even
if all checks were successful. Doing so risks resources being left, if
the tear-down phase is interrupted prematurely. Instead, this validation
should be done with a dedicated extension.

Contributes to
eclipse-windowbuilder#1654
@ptziegler
ptziegler merged commit df29cda into eclipse-windowbuilder:master Oct 26, 2026
8 checks passed
@ptziegler
ptziegler deleted the issue1654 branch October 26, 2026 20:50
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.

2 participants