From a9f4135ba8fb4668e2c73d337401af9f11b61ae8 Mon Sep 17 00:00:00 2001 From: Thibaut Etienne Date: Tue, 3 Nov 2020 15:45:33 +0100 Subject: [PATCH] Add dynamic suite exemple --- allure-pytest/examples/label/suite/dynamic_suite.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 allure-pytest/examples/label/suite/dynamic_suite.rst 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")