Open GoogleCodeExporter opened 8 years ago
Just FYI this happens with @log4j and presumably also the other logging
transforms.
Original comment by jamie.ec...@gmail.com
on 6 Aug 2014 at 5:02
For Groovy 2.3, 1.0-groovy-2.3-SNAPSHOT should be used. Can't say if it will
solve this particular problem though. Perhaps best not to use logging
transforms inside Spock specs.
Original comment by pnied...@gmail.com
on 6 Aug 2014 at 5:28
+1. Doesn't work with spock 1.0-groovy-2.3-SNAPSHOT and groovy-all 2.3.6.
Fixed by switching to spock 0.7-groovy-2.0 and groovy-all 2.3.1
I don't have @log4j. Only spring test configuration annotations
Original comment by belov...@gmail.com
on 17 Nov 2014 at 11:14
@belov.fa That sounds like a different problem. Can you provide more details?
Original comment by pnied...@gmail.com
on 17 Nov 2014 at 12:15
I'm using spock-1.0-groovy24 and Groovy 2.4.3, and the OP's issue is happening
for me as well. I'm currently working around it by extending all specs from a
base class which imports org.slf4j.LoggerFactory and defines @Shared log =
LoggerFactory.getLogger(this.getClass()).
The annotation would be more straightforward and help to keep things consistent
across our Groovy stack though.
Original comment by fracture...@gmail.com
on 9 Jun 2015 at 9:27
Original issue reported on code.google.com by
msa...@gmail.com
on 9 Jul 2014 at 12:52