I am trying to get Geb-Spock tests to run in IntelliJ for a web app I
am working on. I have downloaded Luke Daley's excellent example from
(
https://github.com/geb/geb-example-grails) and imported it into
IntelliJ Idea 10.5.1 . The example runs fine from the command line,
but when I try to run it inside the IDE I get the following message.
java.lang.IllegalStateException: No reports dir has been configured,
you need to set in the config file or via the build adapter.
at geb.Browser.getReportGroupDir(Browser.groovy:405)
at geb.Browser.cleanReportGroupDir(Browser.groovy:438)
at geb.spock.GebSpec.methodMissing(GebSpec.groovy:51)
at geb.spock.GebReportingSpec.setupSpec(GebReportingSpec.groovy:31)
Does anyone have any clues/hints/ideas on overcoming this ? Luke said
that the problem was IntelliJ does not look at the test/ dir on the
classpath, but I have added it and still no joy. I have spent a while
searching the web for a clue to solving this but I have found nothing.
Thanks