Skip to content

Incomplete Allure Reporting on Errors in before and after HooksΒ #232

@chaitanyarajugithub

Description

@chaitanyarajugithub

Description:
There is an issue with the Allure reporting in our Cypress tests where failures in the before and after hooks are not being logged correctly. Specifically:

Error in before Hook:

  • When an error occurs in the before hook, Cypress stops executing further tests in that suite.
  • The after hook still executes for cleanup purposes.

Execution of after Hook:

  • If the after hook executes without any errors, Allure correctly logs the failure details from the before hook.
  • However, if the after hook also encounters an error, Allure does not properly log the failure details from both the before and after hooks. This results in incomplete error reporting in Allure.

Steps to Reproduce:

  • Create a Cypress test suite with before and after hooks.
  • Introduce an error in the before hook.
  • Ensure the after hook also encounters an error.
  • Execute the test suite and observe the Allure report.

Screenshot:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions