allure2 icon indicating copy to clipboard operation
allure2 copied to clipboard

The teardown step is printed in testbody

Open abincoding999 opened this issue 1 year ago • 1 comments

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

  • [X] I agree to follow this project's Code of Conduct

abincoding999 avatar Sep 04 '24 08:09 abincoding999

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.

baev avatar Oct 02 '24 12:10 baev