spockframework / spock

The Enterprise-ready testing and specification framework.
https://spockframework.org
Apache License 2.0
3.53k stars 1 forks source link

Spock ignores all spock tests if pathing jar is used #861

Open ilya-ershov opened 6 years ago

ilya-ershov commented 6 years ago

Thats very disappointing, but Spock locate no tests if pathing jar is used Simple steps to reproduce:

  1. git clone git@github.com:spockframework/spock-example.git
  2. add this pathing jar plugin into build.gradle: plugins { id "ua.eshepelyuk.ManifestClasspath" version "1.0.0" }
  3. Run gradle build Actual: all tests are ignored (you can try fail any of them - no reactions) Expected: all tests are run and results are shown as usual
marcphilipp commented 5 years ago

Which gradle/java/spock versions are you using?

AtulDwivedi commented 4 years ago

I am also facing the similar problem. Details:

I have also tried the same with latest Spock framework 1.3-groovy-2.5 but issue still exists.

ilya-ershov commented 4 years ago

I've switched to a new version of java and now can run through IDE with @argFiles Problems seems gone

AtulDwivedi commented 4 years ago

@ilya-ershov to which version of java you have switched?

Actually I want my tests should get picked while running gradle build command as after that jacocoTestReport task will kick in to generate code coverage reports.

ilya-ershov commented 4 years ago

@AtulDwivedi at least 10th (however support for argFiles comes somewhere in 9th version). Now I'm using 13th openjdk and it works great