From d91b0673482e3c772ddb1828760d6e2d0dd3f1f6 Mon Sep 17 00:00:00 2001 From: Roberto Perez Alcolea Date: Tue, 13 Feb 2024 10:30:17 -0800 Subject: [PATCH] Deprecate IntegrationSpec --- src/main/groovy/nebula/test/BaseIntegrationSpec.groovy | 6 ++++++ src/main/groovy/nebula/test/IntegrationSpec.groovy | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/src/main/groovy/nebula/test/BaseIntegrationSpec.groovy b/src/main/groovy/nebula/test/BaseIntegrationSpec.groovy index 26ef21a..a4a0eab 100644 --- a/src/main/groovy/nebula/test/BaseIntegrationSpec.groovy +++ b/src/main/groovy/nebula/test/BaseIntegrationSpec.groovy @@ -24,6 +24,12 @@ import spock.lang.Specification * {@link Specification} implementation of the {@link IntegrationBase}. */ @CompileStatic +/** + * BaseIntegrationSpec is not recommended as it is not compatible with Gradle's instrumentation mechanisms + * ex. https://github.com/gradle/gradle/issues/27956 and https://github.com/gradle/gradle/issues/27639 + * + * This will be removed in the next nebula-test major version + */ abstract class BaseIntegrationSpec extends Specification implements IntegrationBase { @Rule TestName testName = new TestName() diff --git a/src/main/groovy/nebula/test/IntegrationSpec.groovy b/src/main/groovy/nebula/test/IntegrationSpec.groovy index d425d8c..e8e5533 100644 --- a/src/main/groovy/nebula/test/IntegrationSpec.groovy +++ b/src/main/groovy/nebula/test/IntegrationSpec.groovy @@ -23,6 +23,13 @@ import groovy.transform.CompileStatic * @author Marcin Erdmann */ @CompileStatic +/** + * IntegrationSpec is not recommended as it is not compatible with Gradle's instrumentation mechanisms + * ex. https://github.com/gradle/gradle/issues/27956 and https://github.com/gradle/gradle/issues/27639 +* + * This will be removed in the next nebula-test major version + */ +@Deprecated abstract class IntegrationSpec extends BaseIntegrationSpec implements Integration { def setup() { Integration.super.initialize(getClass(), testName.methodName)