Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sharovd
Copy link
Contributor

@sharovd sharovd commented Apr 10, 2025

Context

  • Implementation of feature request Mark high level step as failed if low level step with soft check failed #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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant