allure-python icon indicating copy to clipboard operation
allure-python copied to clipboard

Mark parent step as failed if child step failed with soft check (fix #827)

Open sharovd opened this issue 9 months ago • 5 comments

Context

  • Implementation of feature request #827
  • Added sync_steps_statuses() method to synchronise the status for the parent step based on the status of the child steps. This method returns True if at least one nested step has failed — allowing the parent step or the test itself to be marked as failed
  • Added test test_pytest_fail_in_nested_step_with_soft_check() to validate the described test scenario
  • Here is an example of allure report after the fix:

Checklist

sharovd avatar Apr 10 '25 11:04 sharovd

@delatrie, hi! Could you please review this PR? Please let me know if any changes are needed.

sharovd avatar Jun 15 '25 15:06 sharovd

Could you please help merge this branch into master? This issue still occurs in allure-pytest version 2.14.3.

vochicuong18 avatar Jul 17 '25 08:07 vochicuong18

微信图片_20251029172320_4149_10 用了大佬的方法,我纯搬运工,解决了我的难题,膜拜! @sharovd 谢谢

Solo-TT avatar Oct 29 '25 09:10 Solo-TT

I really need this functionality too! Maintainers, respond, please!

ExplorerOL avatar Nov 20 '25 09:11 ExplorerOL

I really need this functionality too! Maintainers, respond, please!

The author has already submitted it. I wonder where you're from?

Solo-TT avatar Nov 20 '25 09:11 Solo-TT