Skip to content

Sliced tests doesn't reuse cached contexts when testing with Spock #7524

Closed
@wilkinsona

Description

@wilkinsona

Spock adds an annotation to a specification that makes each spec appear to be different:

@org.spockframework.runtime.model.SpecMetadata(filename=FilmController2Spec.groovy, line=18)
@org.spockframework.runtime.model.SpecMetadata(filename=FilmControllerSpec.groovy, line=18)

Similar to what we did with Kotlin (#7101), we need to ignore Spock's annotations in ContextCustomizerKey.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions