allure-python
allure-python copied to clipboard
Mark parent step as failed if child step failed with soft check (fix #827)
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 returnsTrueif 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
- [x] Sign Allure CLA
- [x] Provide unit tests
@delatrie, hi! Could you please review this PR? Please let me know if any changes are needed.
Could you please help merge this branch into master? This issue still occurs in allure-pytest version 2.14.3.
I really need this functionality too! Maintainers, respond, please!
I really need this functionality too! Maintainers, respond, please!
The author has already submitted it. I wonder where you're from?