624: add flattenReport option for Allure2-like step behavior#1465
624: add flattenReport option for Allure2-like step behavior#1465pschroeder89 wants to merge 2 commits into
Conversation
154c957 to
cb23385
Compare
8399235 to
21d4279
Compare
21d4279 to
2592a72
Compare
|
When Consider a typical Playwright setup with a This gets worse in real projects where multiple fixtures are composed together. A The original nested layout — however verbose — at least answers the question "at what point in the test lifecycle was this attachment created." Flattening trades that context for a cleaner visual at the cost of making the report useless for diagnosing failures in fixtures or hooks, which is exactly the scenario where attachments matter most. |
|
@todti I don't disagree with Allure3's more organized structure, but it's a behavioral difference between Allure2 and Allure3 and makes it a non-starter for my team and others to make the switch. It also becomes difficult to dig through hooks / steps to find an artifact, especially if you have a lot of artifacts. |
Context
Adds support for
flattenReportplaywright config options:['allure-playwright', { environmentInfo: allureEnvInfo, flattenReport: true }],flattenReport: truecollapses the Playwright fixture/hook step hierarchy so attachments appear directly on the test result rather than nested inside "Before Hooks" / "After Hooks" steps in the Allure report. This matches Allure2 behavior and IMO looks cleaner. See below screenshots. Fixes #1396Before:

After:

Checklist