首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Cucumber with @IntegrationTest

Cucumber with @IntegrationTest
EN

Stack Overflow用户
提问于 2015-04-27 23:08:04
回答 1查看 727关注 0票数 1

我想为我的测试运行cucumber,但没有首先运行我的api rest,因此我在RunCakes中包含了@IntegrationTest。类,但是当我运行集成测试时,应用程序不会启动。

代码语言:javascript
复制
@RunWith(Cucumber.class)
@CucumberOptions(format = { "pretty", "html:target/cucumber-html-  report" }, dryRun = false, strict = true, features = { "classpath:features" })
@IntegrationTest({ "server.port=9001", "spring.cloud.config.server.git.uri=file:./target/repos/configuration-sample", 
"spring.cloud.config.server.bootstrap=false", "ldap.uri=" , "security.ignored="})
public class RunCukesIT {

}
EN

回答 1

Stack Overflow用户

发布于 2015-04-27 23:56:04

您最有可能寻找的是@WebIntegrationTest而不是@IntegrationTest

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/29899415

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档