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

@baev baev 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

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

github-actions Bot commented Sep 4, 2026

Copy link
Copy Markdown

Allure Report Summary

Name Duration Stats New Flaky Retry Report
Allure Java – Pull request #1416 31m 54s Passed tests 2287 2 0 0 View
Allure Java GitHub actions run (2026-09-04T08:48:05.721Z) 31m 54s Passed tests 2287 2 0 0 View

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

Labels

pr:bug Something 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