Testing 任务';的执行失败:compileIntegrationTestGroovy';

Testing 任务';的执行失败:compileIntegrationTestGroovy';,testing,grails,functional-testing,Testing,Grails,Functional Testing,我创建了一个应用程序 grails create-app TestApp 我已经创建了一个测试 grails create-functional-test Test grails test-app 当我试着开始测试时 grails create-functional-test Test grails test-app 它给了我一个错误: Execution failed for task ':compileIntegrationTestGroovy'. 问题是如何运行测试并解决这个问

我创建了一个应用程序

grails create-app TestApp
我已经创建了一个测试

grails create-functional-test Test
grails test-app
当我试着开始测试时

grails create-functional-test Test
grails test-app
它给了我一个错误:

Execution failed for task ':compileIntegrationTestGroovy'.
问题是如何运行测试并解决这个问题? 也许我错过了一些依赖

输出为: *出了什么问题: 任务“:compileIntegrationTestGroovy”的执行失败

org.codehaus.groovy.ast.tools.GenericsUtils.addMethodGenerics(Lorg/codehaus/groovy/ast/MethodNode;Ljava/util/Map;)Ljava/util/Map

UPD:

返回一个带有

Caused by: java.lang.NoSuchMethodError: 
org.codehaus.groovy.ast.tools.GenericsUtils.addMethodGenerics(Lorg/codehaus/groovy/ast/MethodNode;Ljava/util/Map;)Ljava/util/Map

UPD

测试是

package myapp

import grails.testing.mixin.integration.Integration
import grails.transaction.*

import geb.spock.*

/**
  * See http://www.gebish.org/manual/current/ for more instructions
 */
@Integration
@Rollback
class TestSpec extends GebSpec {

  def setup() {
  }

  def cleanup() {
  }

  void "test something"() {
      when:"The home page is visited"
          go '/'

      then:"The title is correct"
            title == "Welcome to Grails"
  }
}

如果您使用的是Grails 3.3.0,则生成的测试模板中存在问题,因此在集成测试中,您将希望替换此模板

import grails.test.mixin.integration.Integration
用这个

import grails.testing.mixin.integration.Integration

您还没有显示出足够的错误来了解出了什么问题,但是“可能我遗漏了一些依赖项?”的答案是否定的。如果您按照上面描述的3个步骤进行操作,这通常是有效的。您使用的是什么版本的Grails?@JeffScottBrown,3.3。0@JeffScottBrown,我更新了关于OutputGeneratedImportsOK的更多信息,所以它仍然返回相同的错误。“GeneratedImportsOK”-这让我感到惊讶。3.3.0有一个与此不一致的bug。修复导入后,测试应运行。我将上面代码中的代码直接粘贴到一个新创建的3.3.0项目中,它按预期工作。您的环境中有些不稳定的地方,因为如果您使用的是3.3.0,您上面显示的代码不应该是
create functional test
生成的代码。您现在显示的错误与您开始提问时使用的3个步骤所显示的错误不同。你在使用什么JDK?JVM版本:1.8.0_73 Groovy版本:2.4.11你所报告的对我来说没有意义。这就是我希望看到的: