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

If the step combines strong and soft checks, then the step is marked as pass despite soft checks failed

Open esultanza opened this issue 2 years ago • 1 comments

I'm submitting

  • [x] bug report

What is the current behavior?

the step combining strong and soft checks is marked as passed despite soft checks failed

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem

  1. Run test
@allure.id("6088")
def test_draft():
    with allure.step("Проверка, что cevvсуммы равны"):
        assert 2+2==1+3
        for digit in [1,2,3]:
            with check: assert digit == 10

  1. Check status for steps at *-result.json in allure-results

What is the expected behavior?

The step marked as failed

What is the motivation / use case for changing the behavior?

Correct mark

Please tell us about your environment:

Other information

18285403-d1b5-4ce8-bad2-3e81e4f78bb4-result.json

esultanza avatar Dec 12 '23 17:12 esultanza

Hello,I met the problem as above, has the bug fixed?

Faerie1999 avatar Jul 11 '24 06:07 Faerie1999