From 686028be9811b9a553ad4ded58ced3c52a11e440 Mon Sep 17 00:00:00 2001 From: Dmitry Baev Date: Thu, 26 Oct 2023 16:40:05 +0100 Subject: [PATCH] fix(spock2): add support for test tags (via #974) --- .../io/qameta/allure/spock2/AllureSpock2.java | 7 ++++ .../allure/spock2/AllureSpock2Test.java | 14 ++++++++ .../allure/spock2/samples/SpockTags.groovy | 32 +++++++++++++++++++ 3 files changed, 53 insertions(+) create mode 100644 allure-spock2/src/test/groovy/io/qameta/allure/spock2/samples/SpockTags.groovy diff --git a/allure-spock2/src/main/java/io/qameta/allure/spock2/AllureSpock2.java b/allure-spock2/src/main/java/io/qameta/allure/spock2/AllureSpock2.java index c7be6decc..9c973b7de 100644 --- a/allure-spock2/src/main/java/io/qameta/allure/spock2/AllureSpock2.java +++ b/allure-spock2/src/main/java/io/qameta/allure/spock2/AllureSpock2.java @@ -42,6 +42,7 @@ import org.spockframework.runtime.model.MethodInfo; import org.spockframework.runtime.model.MethodKind; import org.spockframework.runtime.model.SpecInfo; +import org.spockframework.runtime.model.TestTag; import java.lang.reflect.Method; import java.security.MessageDigest; @@ -185,6 +186,12 @@ public void beforeIteration(final IterationInfo iteration) { labels.add(createParentSuiteLabel(superSpec.getName())); } + final List