Open GoogleCodeExporter opened 8 years ago
same problem on Grails 2.2.4, Groovy 2.0.8, spock-core-0.7-groovy-2.0
Original comment by jdbeu...@gmail.com
on 15 Nov 2013 at 10:02
Same problem on Grails 2.3.2 too.
I've submitted a pull request for a fix:
https://github.com/spockframework/spock/pull/24
Original comment by jdbeu...@gmail.com
on 22 Nov 2013 at 2:49
Just to confirm that I see this on Grails 2.3.7 as well.
The work-around given here works:
http://spock-framework.3207229.n2.nabble.com/Include-Exclude-using-SpockConfig-t
d6431180.html
I settled on:
///
import javax.annotation.Resource as Slow
@Slow
class MySpec extends GebReportingSpec {
///
Because Resource is a class-level annotation.
Would LOVE to see this fixed up.
Original comment by googlegr...@transentia.com.au
on 12 Apr 2014 at 11:15
I used my pull request 24 version of Spock with Grails 2.2, but since Grails
2.3 comes with its own version of Spock, I had to use a different approach.
Instead of using a Spock config to include a certain annotation, I implemented
an IGlobalExtension to exclude all the specs without that annotation.
Original comment by jdbeu...@gmail.com
on 13 Apr 2014 at 1:01
I don't see this issue on Grails 3.0.2 or 3.0.3. They use
spock-core:1.0-groovy-2.4, but apparently load SpockConfig.groovy with a
classpath that includes classes under src/test and src/main.
Original comment by jdbeu...@gmail.com
on 13 Jul 2015 at 8:43
Original issue reported on code.google.com by
booco...@gmail.com
on 2 Jun 2011 at 4:58