黄瓜与@IntegrationTest

时间:2015-04-27 15:08:04

标签: cucumber spring-boot

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

@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 {

}

1 个答案:

答案 0 :(得分:0)

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