gpt4 book ai didi

java - 如何将Cucumber测试添加到预先存在的Gradle项目(Java)?

转载 作者:行者123 更新时间:2023-12-03 05:42:58 25 4
gpt4 key购买 nike

我目前有一个大型gradle项目(使用Java和IntelliJ),我想在其中添加Cucumber测试。我已通过此链接概述了一些基本步骤:

http://www.thinkcode.se/blog/2014/08/24/cucumberjvm-hello-world-with-gradle

例如将依赖项和存储库设置添加到我的build.gradle文件中,如下所示:

dependencies {
testCompile 'info.cukes:cucumber-java:1.2.4'
testCompile 'info.cukes:cucumber-junit:1.2.4'
testCompile 'junit:junit:4.12'
}
test {
testLogging.showStandardStreams = true
systemProperties System.getProperties()
}

但是,我不确定如何从这里继续。我应该在某个位置创建 cucumber 测试吗?

最佳答案

Boaz的上述答案似乎奏效。谢谢!

define your feature files under the resources subtree and your steps at the same location as normal junit tests - the tests subtree

关于java - 如何将Cucumber测试添加到预先存在的Gradle项目(Java)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51626018/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com