Reporting Directory errors while trying to get Geb-Spock tests to run in IntelliJ

578 views
Skip to first unread message

Greg

unread,
Sep 7, 2011, 11:47:25 AM9/7/11
to Spock Framework - User
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

Luke Daley

unread,
Sep 8, 2011, 4:39:21 AM9/8/11
to spockfr...@googlegroups.com
Hi Greg,

This question falls solely in Geb's jurisdiction so the geb-user list would be a better place for this question.

> --
> You received this message because you are subscribed to the Google Groups "Spock Framework - User" group.
> To post to this group, send email to spockfr...@googlegroups.com.
> To unsubscribe from this group, send email to spockframewor...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/spockframework?hl=en.
>

Reply all
Reply to author
Forward
0 new messages