allure-framework / allure2

Allure Report is a flexible, lightweight multi-language test reporting tool. It provides clear graphical reports and allows everyone involved in the development process to extract the maximum of information from the everyday testing process
https://allurereport.org/
Apache License 2.0
4.25k stars 717 forks source link

The teardown step is printed in testbody #2714

Open abincoding999 opened 2 months ago

abincoding999 commented 2 months ago

The teardown/Hook step is printed in testbody

image allure-cucumber7-jvm = 2.24.0 it came in the teardown section but in allure-cucumber7-jvm = 2.27.0 onwards it is coming in the testbody.

Steps to Reproduce

  1. create a test and take screenshot after every step
  2. create allure report for 2.27.0 and view it

Expected Behaviour

hook steps should be in teardown

Screenshots or Additional Context

No response

What Language are you using?

Java

What Framework/Allure Integration you are using?

allure-cucumber7-jvm

What version of Allure Integration you are using?

2.27.0

What version of Allure Report you are using?

2.27.0

Code of Conduct

baev commented 1 month ago

After step hooks are executed during the test, Allure displays it correctly.

You can use Allure Lifecycle API to "fix" the report, e.g. remove the logging for after-step hooks or rename it to something more meaningful.