grails-core icon indicating copy to clipboard operation
grails-core copied to clipboard

`grails.geb.reporting.directory` does not work in multiple project builds

Open jdaugherty opened this issue 7 months ago • 1 comments

Issue description

This may really be a bug in Geb because https://github.com/apache/groovy-geb/blob/67c51d3bd38bf6ac49e1c723eadab679d8ba8476/module/geb-core/src/main/groovy/geb/Browser.groovy#L874 does not call canonicalFile so the exists() check will fail.

We should change our default to be an absolute path to fix this or push a fix upstream. The workaround for now is to specify grails.geb.reporting.directory as an absolute path.

jdaugherty avatar Jun 07 '25 21:06 jdaugherty

This was found in the spring security project when trying to enable reporting - the report path is the root project's build directory and Geb will fail saying the file doesn't exist - even though it does.

jdaugherty avatar Jun 07 '25 21:06 jdaugherty

the java process will be run at the root, so the current directory will be different in a multiproject. this was user error as a result and this can be closed.

jdaugherty avatar Jul 05 '25 23:07 jdaugherty