Skip to content

Iteration name provider does not apply to non parameterized tests in Spock 2 #1236

@ldaley

Description

@ldaley

Issue description

In Spock 1, the iteration name provider also applied to non parameterized tests. In Spock 2, it does not.

How to reproduce

spock-2-iteration-name-provider-bug.zip

The above is a complete Gradle project that can run a test with Spock 1 or 2.

Works:

$ ./gradlew test -Pspock1

> Task :test

pkg.ExampleSpec > test [suffix] STARTED

pkg.ExampleSpec > parameterized [suffix] STARTED

pkg.ExampleSpec > parameterized [suffix] STARTED

Not works (Spock 2):

$ ./gradlew test

> Task :test

ExampleSpec > test STARTED

ExampleSpec > parameterized [suffix] STARTED

ExampleSpec > parameterized [suffix] STARTED

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions