Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/spring-boot/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spring boot 黄瓜和春靴的宁静_Spring Boot_Cucumber_Serenity Bdd - Fatal编程技术网

Spring boot 黄瓜和春靴的宁静

Spring boot 黄瓜和春靴的宁静,spring-boot,cucumber,serenity-bdd,Spring Boot,Cucumber,Serenity Bdd,我正在使用带有Serenity的Springboot作为UI测试框架,我想将cucumber添加到我的项目中。 我的问题是,该测试不会引导我的Springboot测试应用程序。你能帮帮我吗? 我的依赖项: testCompile("net.serenity-bdd:serenity-core:${serenityVersion}") testCompile("net.serenity-bdd:serenity-junit:${serenityVersion}") testCompile("net

我正在使用带有Serenity的Springboot作为UI测试框架,我想将cucumber添加到我的项目中。 我的问题是,该测试不会引导我的Springboot测试应用程序。你能帮帮我吗? 我的依赖项:

testCompile("net.serenity-bdd:serenity-core:${serenityVersion}")
testCompile("net.serenity-bdd:serenity-junit:${serenityVersion}")
testCompile("net.serenity-bdd:serenity-spring:${serenityVersion}")
testCompile("net.serenity-bdd:serenity-cucumber:${cucumberVersion}")

testCompile("info.cukes:cucumber-java:1.2.5")
我的Serenity/Cucumber测试(FrontendTestApplication用@SpringbootApplication注释):

如果我运行以前的测试,一切正常,但是这个测试不会启动我的Springboot应用程序

你们能帮帮我吗

问候,, 拉尔斯我发现了错误。
您必须用
@springbootest
注释定义类的步骤,而不是runner类。

您有任何示例吗?
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.DEFINED_PORT, classes = {FrontendTestApplication.class})
@RunWith(CucumberWithSerenity.class)
public class InputStationCucumber {
}