Skip to content

Cannot run all spock tests in a directory #736

@monrealis

Description

@monrealis
  1. Create a Maven project with groovy, spock and junit.
  2. Create a spock test case with def variable = new ....() {} declaration ({} is the key here). For example,
class MySpec extends Specification {
    def list = new ArrayList() {
    }

    def "..."() {
...
    }
}
  1. Run all tests in a package/directory

Eclipse shows "No tests found with test runner 'JUnit 4'.

2018-09-30_2341

test-project.zip

Maven build succeeds.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions