Skip to content

Preserve parameterized test identity when JUnit setup fails - #1416

Merged
baev merged 1 commit into
mainfrom
fix-1061
Sep 4, 2026
Merged

Preserve parameterized test identity when JUnit setup fails#1416
baev merged 1 commit into
mainfrom
fix-1061

Conversation

@baev

@baevbaev commented Sep 4, 2026

Copy link
Copy Markdown
Member

Context

Parameterized JUnit Jupiter tests that fail in @BeforeEach now retain their invocation parameters. A later successful attempt receives the same test case and history identity, allowing Allure Report and Allure TestOps to group the setup failure as a retry instead of displaying a separate result.

Successful invocations continue to report their resolved argument values. Per-test setup failures remain attached to the real test invocation, while class- and container-level fixture failures continue to be reported as global errors without creating phantom tests.

fixes#1061

Checklist

@baevbaev added the pr:bug Something isn't working label Sep 4, 2026
@github-actions

Copy link
Copy Markdown

Allure Report Summary

NameDurationStatsNewFlakyRetryReport
Allure Java – Pull request #141631m 54sPassed tests2287200View
Allure Java GitHub actions run (2026-09-04T08:48:05.721Z)31m 54sPassed tests2287200View

@baev
baev merged commit 1457ce1 into mainSep 4, 2026
9 of 10 checks passed
@baev
baev deleted the fix-1061 branch September 4, 2026 11:05
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr:bugSomething isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🐞: [Junit5] Parameterized test failed in @BeforeEach lacks parameters data in result.json

2 participants

@baev@pratushnyi