Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link
@provider161

Description

@provider161
Issue body actions

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.