From 67b0a16c7d6a7214aad2e3675f2f99a89acff041 Mon Sep 17 00:00:00 2001 From: Peter Ng Date: Sat, 24 Feb 2024 12:36:28 +0800 Subject: [PATCH] extraInfo is not set in the right iteration when Rollup is used, extraInfo are only added to the first iteration since iterationIndex is only effective when Unroll is enabled Change-Id: Ib87c7f814e7bdad593b08cd41d76c10687785cd5 --- build.gradle | 2 +- .../report/extension/SpockReportsSpecificationExtension.groovy | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 5ccbbf7..4c4431b 100644 --- a/build.gradle +++ b/build.gradle @@ -9,7 +9,7 @@ plugins { defaultTasks 'check' group = 'com.athaydes' -version = "2.5.1-groovy-4.0" +version = "2.5.2-groovy-4.0" description = 'This project is a global extension for Spock to create test (or, in Spock terms, Specifications) reports.' sourceCompatibility = '1.8' diff --git a/src/main/groovy/com/athaydes/spockframework/report/extension/SpockReportsSpecificationExtension.groovy b/src/main/groovy/com/athaydes/spockframework/report/extension/SpockReportsSpecificationExtension.groovy index 4408e04..80d57c7 100644 --- a/src/main/groovy/com/athaydes/spockframework/report/extension/SpockReportsSpecificationExtension.groovy +++ b/src/main/groovy/com/athaydes/spockframework/report/extension/SpockReportsSpecificationExtension.groovy @@ -51,7 +51,7 @@ class InfoContainer { private static String keyFor( String specName, FeatureInfo feature, IterationInfo iteration ) { - def index = iteration && Utils.isUnrolled( feature ) ? iteration.iterationIndex : -1 + def index = iteration ? iteration.iterationIndex : -1 "$specName${feature?.name}$index" }