spockframework / spock

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

build fails with java.lang.IllegalArgumentException #116

Open tarczynskitomek opened 9 years ago

tarczynskitomek commented 9 years ago

./gradlew clean build results in 3 failed test. Exception thrown:

org.spockframework.smoke.FeatureFiltering > filter selected feature methods FAILED
    java.lang.IllegalArgumentException
        at groovy.util.ProxyGenerator.instantiateAggregate(ProxyGenerator.java:161)
        at groovy.util.ProxyGenerator.instantiateAggregateFromBaseClass(ProxyGenerator.java:117)
        at groovy.util.ProxyGenerator.instantiateAggregateFromBaseClass(ProxyGenerator.java:103)
        at org.spockframework.smoke.FeatureFiltering.filter selected feature methods(FeatureFiltering.groovy:33)

org.spockframework.smoke.FeatureFiltering > filtering all feature methods results in exception FAILED
    java.lang.IllegalArgumentException
        at groovy.util.ProxyGenerator.instantiateAggregate(ProxyGenerator.java:161)
        at groovy.util.ProxyGenerator.instantiateAggregateFromBaseClass(ProxyGenerator.java:117)
        at groovy.util.ProxyGenerator.instantiateAggregateFromBaseClass(ProxyGenerator.java:103)
        at org.spockframework.smoke.FeatureFiltering.filtering all feature methods results in exception(FeatureFiltering.groovy:54)

org.spockframework.smoke.FeatureFiltering > filtering across inheritance chain FAILED
    java.lang.IllegalArgumentException
        at groovy.util.ProxyGenerator.instantiateAggregate(ProxyGenerator.java:161)
        at groovy.util.ProxyGenerator.instantiateAggregateFromBaseClass(ProxyGenerator.java:117)
        at groovy.util.ProxyGenerator.instantiateAggregateFromBaseClass(ProxyGenerator.java:103)
        at org.spockframework.smoke.FeatureFiltering.filtering across inheritance chain(FeatureFiltering.groovy:79)

OS Elementary OS 0.3 Freya (Ubuntu 14.04) x64 Java JDK 1.8.0_51 Gradle 2.5

leonard84 commented 9 years ago

Could you also post the commit hash and the variant you are testing. It defaults to 2.0, could you also test -Dvariant=2.4

tarczynskitomek commented 9 years ago

@leonard84 Sure thing! Commit hash is 97fcd004b4208662144ab7450ac2bff9acc8e3e0 I've tried with default settings and the result was as described above. Building with -DVariant=2.4 flag, as you've suggested, works fine.