diff --git a/allure-python-commons/src/_allure.py b/allure-python-commons/src/_allure.py index 0001cef3..9b92ba66 100644 --- a/allure-python-commons/src/_allure.py +++ b/allure-python-commons/src/_allure.py @@ -125,6 +125,17 @@ def issue(url, name=None): def testcase(url, name=None): Dynamic.link(url, link_type=LinkType.TEST_CASE, name=name) + def suite(suite_name): + Dynamic.label(LabelType.SUITE, suite_name) + + + def parent_suite(parent_suite_name): + Dynamic.label(LabelType.PARENT_SUITE, parent_suite_name) + + + def sub_suite(sub_suite_name): + Dynamic.label(LabelType.SUB_SUITE, sub_suite_name) + def step(title): if callable(title):