Skip to content

Commit

Permalink
Deprecate IntegrationSpec
Browse files Browse the repository at this point in the history
  • Loading branch information
rpalcolea committed Feb 13, 2024
1 parent 9bb901b commit d91b067
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/groovy/nebula/test/BaseIntegrationSpec.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
7 changes: 7 additions & 0 deletions src/main/groovy/nebula/test/IntegrationSpec.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d91b067

Please sign in to comment.