Gradle 具有依赖步骤的cumber

Gradle 具有依赖步骤的cumber,gradle,dependency-injection,cucumber,Gradle,Dependency Injection,Cucumber,我试图在一个项目(“实际的_项目”)中使用gradle执行cucumber测试,但它和其他项目有依赖关系(“依赖关系”)。“实际_项目”的测试使用了“依赖性”的一些核心特性和步骤 问题是执行过程会检测到未定义的步骤(从依赖项中),并跳过实际项目中的步骤 17 Steps (5 skipped, 12 undefined) You can implement missing steps with the snippets below: 格雷德尔先生 project(':ACTUAL_PROJEC

我试图在一个项目(“实际的_项目”)中使用gradle执行cucumber测试,但它和其他项目有依赖关系(“依赖关系”)。“实际_项目”的测试使用了“依赖性”的一些核心特性和步骤

问题是执行过程会检测到未定义的步骤(从依赖项中),并跳过实际项目中的步骤

17 Steps (5 skipped, 12 undefined)
You can implement missing steps with the snippets below:
格雷德尔先生

project(':ACTUAL_PROJECT') {
    dependencies {
        testCompile project(':DEPENDENCY').sourceSets.test.output
    }

    configurations {
        cucumberRuntime.extendsFrom testRuntime
        testCompile.transitive = false
    }

    task integrationTest(dependsOn: [testClasses, compileTestJava]) {
        doLast {
            return javaexec {
                main = "cucumber.api.cli.Main"
                classpath = configurations.cucumberRuntime + sourceSets.test.output
                args = ["-g",
                    "xx.xxx.xxxx.ACTUAL_PROJECT.steps",
                    "classpath: xx.xxx.xxxx.DEPENDENCY.steps",
                    "src/test/resources/features/ ",
                    "-p",
                    "pretty"]
        }
    }
}
谢谢