Skip to content

Fix JUnit Platform reporting for nested tests#1316

Merged
baev merged 1 commit into
mainfrom
fix-jupiter-nested-tests
Jul 9, 2026
Merged

Fix JUnit Platform reporting for nested tests#1316
baev merged 1 commit into
mainfrom
fix-jupiter-nested-tests

Conversation

@baev

@baev baev commented Jul 9, 2026

Copy link
Copy Markdown
Member

Context

JUnit Platform reports now preserve nested test class structure in suite labels, so nested Jupiter tests appear in the expected parent suite, suite, and sub-suite groups instead of being flattened under the innermost class. This keeps report navigation accurate for nested test hierarchies.

Nested classes with @DisplayName are also reflected consistently in suite labels and title paths. For example, a top-level display name such as A customer object now remains the parent grouping, while nested contexts like when created and after saving a customer appear as deeper report tree levels.

fixes #1052
fixes #1234

Checklist

@baev baev added pr:improvement Change that improves some user experience but can't be considered as a new feature and removed theme:junit-platform labels Jul 9, 2026
@baev
baev merged commit e7f02d1 into main Jul 9, 2026
11 of 12 checks passed
@baev
baev deleted the fix-jupiter-nested-tests branch July 9, 2026 12:51
@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown

Allure Report Summary

Name Duration Stats New Flaky Retry Report
Allure Java – Pull request #1316 24m 56s Passed tests 1906   Skipped tests 2 4 0 0 View
Allure Java GitHub actions run (2026-07-09T13:20:16.440Z) 24m 56s Passed tests 1906   Skipped tests 2 4 0 0 View

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr:improvement Change that improves some user experience but can't be considered as a new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Test nesting doesn't work 🐞: [JUnit5] - parentSuite & subSuite metadata are missing

2 participants