Skip to content

Support subtests as steps#898

Open
ShurikMen wants to merge 5 commits intoallure-framework:masterfrom
ShurikMen:support_pytest_9_subtests
Open

Support subtests as steps#898
ShurikMen wants to merge 5 commits intoallure-framework:masterfrom
ShurikMen:support_pytest_9_subtests

Conversation

@ShurikMen
Copy link
Contributor

Issue #374
support pytest 9.0 subtest

import allure
import pytest

@pytest.mark.skipif("pytest.__version__[0] < '9'")
def test_with_subtest(subtests):
   with subtests.test(msg='Some failed subtest'):
       assert False, 'Some error'
   with allure.step('Next step'):
       pass
image

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