Skip to content
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

Mark high level step as failed if low level step with soft check failed #827

Open
1 task done
provider161 opened this issue Sep 12, 2024 · 0 comments
Open
1 task done

Comments

@provider161
Copy link

provider161 commented Sep 12, 2024

I'm submitting a ...

  • feature request

What is the current behavior?

If there is a low level step with failed soft check, high level step marked green.

Code:

from pytest_check import check as soft_check
from allure import step


def test_soft_checks():

    with step("High level step"):

        with soft_check, step("1st low level step"):

            assert False

        with soft_check, step("2nd low level step"):

            assert True

What we got in report:

high level step is green

Снимок экрана 2024-09-12 в 17 07 25

What is the expected behavior?

high level step is red

Please tell us about your environment:

  • Allure version: 2.22.1
  • Test framework: pytest==7.4.0
  • Allure adaptor: allure-pytest==2.13.1
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

No branches or pull requests

1 participant