diff --git a/allure-pytest/examples/label/suite/dynamic_suite.rst b/allure-pytest/examples/label/suite/dynamic_suite.rst new file mode 100644 index 00000000..c777c843 --- /dev/null +++ b/allure-pytest/examples/label/suite/dynamic_suite.rst @@ -0,0 +1,12 @@ +Dynamic suite +------------------- + +Also suites can be dynamically updated from within test body using allure.dynamic.suite. + + + >>> import allure + + >>> def test_dynamic_suite(): + ... allure.dynamic.suite("Dynamic suite") + ... allure.dynamic.parent_suite("Dynamic suite") + ... allure.dynamic.sub_suite("Dynamic suite")