From 08e06f211eaabb25ad12a8224590ccdf30179c10 Mon Sep 17 00:00:00 2001 From: Stanislav Seliverstov Date: Wed, 13 Jan 2021 12:26:07 +0300 Subject: [PATCH] fix robot testplan (via #540) --- allure-robotframework/src/listener/allure_testplan.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/allure-robotframework/src/listener/allure_testplan.py b/allure-robotframework/src/listener/allure_testplan.py index 342d9792..950ffcb8 100644 --- a/allure-robotframework/src/listener/allure_testplan.py +++ b/allure-robotframework/src/listener/allure_testplan.py @@ -12,10 +12,12 @@ def __init__(self): def start_suite(self, suite): if self.testplan: # included_tests = [test["selector"] for test in self.testplan] - suite.filter(included_tests=self.included_tests(suite)) + included_tests = self.included_tests(suite) + if included_tests: + suite.filter(included_tests=self.included_tests(suite)) def included_tests(self, suite): - included_tests = [""] + included_tests = [] for test in suite.tests: allure_id = None for label in allure_labels(test.tags):