我将 Grails 2.2.1 与最新的 Geb 版本一起使用。我的 Spec 测试文件位于functional/com.geb.mytest/ 下
我的 GebConfig 与我的规格在同一个包中。
import org.openqa.selenium.firefox.FirefoxDriver
import org.openqa.selenium.firefox.FirefoxProfile
driver = {
    FirefoxProfile firefoxProfile = new FirefoxProfile()
    new FirefoxDriver(firefoxProfile)
}
reportsDir = "target/test-reports"
baseUrl =  'http://myserver.com'
waiting {
    timeout = 5
    retryInterval = 0.5
    presets {
        slow {
            timeout = 20
            retryInterval = 1
        }
        quick {
            timeout = 1.5
            retryInterval = 0.3
        }
    }
}
environments {
}
当我运行grails test-app  -functional我的 baseUrl 时没有考虑...相反我有一个 localhost url ..
有没有办法避免将 baseUrl 作为参数放在 grails test-app 命令中?
任何想法?提前致谢