Skip to content

Fix TestNG class fixtures for factory-created instances - #1306

Merged
baev merged 1 commit into
mainfrom
fix-testng-class-fixtures
Jul 7, 2026
Merged

baev merged 1 commit into
mainfrom
fix-testng-class-fixtures

Conversation

@baev

@baev baev commented Jul 7, 2026

Copy link
Copy Markdown
Member

Context

TestNG reports now keep class fixtures attached to the factory-created instance they actually ran for. When a factory creates multiple instances of the same test class, each instance gets its own before/after class fixture scope, so report containers no longer duplicate or mix tests from other instances.

fixes #896

Checklist

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

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown

Allure Report Summary

Name Duration Stats New Flaky Retry Report
Allure Java – Pull request #1306 26m 14s Passed tests 1872   Skipped tests 2 40 0 0 View
Allure Java GitHub actions run (2026-07-07T12:54:30.700Z) 26m 14s Passed tests 1872   Skipped tests 2 40 0 0 View

@baev
baev merged commit 86e79b4 into main Jul 7, 2026
11 checks passed
@baev
baev deleted the fix-testng-class-fixtures branch July 7, 2026 13:34
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.

beforeClass * <number of parameters in data provider> is shown in each test case result for test class with @Factory(dataProvider = "parameters")

2 participants