in module/geb-core/src/main/groovy/geb/Browser.groovy [867:879]
File getReportGroupDir() {
def reportsDir = config.reportsDir
if (reportsDir == null) {
throw new IllegalStateException("No reports dir has been configured, you need to set in the config file or via the build adapter.")
}
def reportGroupDir = reportGroup ? new File(reportsDir, reportGroup) : reportsDir
if (!(reportGroupDir.mkdirs() || reportGroupDir.exists())) {
throw new IllegalStateException("Could not create report group dir '${reportGroupDir}'")
}
reportGroupDir
}