Skip to content

Treat errors in setup hooks as Global Errors in Allure Report - #130

Open
vdvukhzhilov wants to merge 1 commit into
mainfrom
hooks-global-errors
Open

vdvukhzhilov wants to merge 1 commit into
mainfrom
hooks-global-errors

Conversation

@vdvukhzhilov

Copy link
Copy Markdown

Summary

  • Failed PHPUnit hooks (setUp, tearDown, setUpBeforeClass, tearDownAfterClass, and related pre/post-conditions) are now recorded as Allure fixtures.
  • On hook failure, Allure also writes a global error with a clear prefixed message (e.g. setUp failed: …), so the issue shows under Global Errors.
  • Fixture reporting for the hook is kept; the test still fails the way PHPUnit already fails it. Each failed hook produces one global error (no duplicates)

@vdvukhzhilov
vdvukhzhilov force-pushed the hooks-global-errors branch 3 times, most recently from 2feecb8 to 31611c2 Compare August 7, 2026 10:28
@vdvukhzhilov
vdvukhzhilov requested a review from delatrie August 7, 2026 10:51
@vdvukhzhilov vdvukhzhilov changed the title Treat hooks errors as Allure Report Global Errors Treat errors in setup hooks as Global Errors in Allure Report Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant