Skip to content

Cannot select test from parent spec #1235

@ldaley

Description

@ldaley

Issue description

Tests inherited from super classes cannot be selected/filtered with Spock 2 (m3), where they could be with Spock 1.

How to reproduce

spock-2-superclass-filter-bug.zip

Attached is a complete Groovy project, that can use Spock1 or 2.

Works:

./gradlew test --tests *ChildSpec.parent -Pspock1

Fails (uses Spock2):

./gradlew test --tests *ChildSpec.parent

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions