所以我一直试图让这些工具一起运行,但我似乎无法正确设置。每次出现以下错误时:
The project was not built since its build path is incomplete. Cannot find the class file for org.spockframework.mock.MockController. Fix the build path then try building this project.
我已经创建了这个要点。当我运行 gradle chrome test 时,我得到以下输出:
gradle chrome test
:compileJava UP-TO-DATE
:compileGroovy UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:compileTestJava UP-TO-DATE
:compileTestGroovy FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileTestGroovy'.
> org/spockframework/mock/MockController
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
我正在使用 gradle 1.3、geb 0.7.2 和 spock 0.7-groovy-2.0。我还尝试更新 geb 以使用 0.9.0-RC-1。上面的要点应该包含看到同样错误所需的一切。