[英]Spring Boot BDD Testing with serenity
我们有一个春季启动应用程序,我们想通过宁静测试(前Thucydides)。 理论上可以运行测试(如果我测试例如www.google.com一切正常)但我想测试我自己的应用程序而不是google;)
所以我需要在运行测试之前启动应用程序。 通常我们有一个注释
@RunWith(SpringJUnit4ClassRunner.class)
在我们的考试课上。 但是我们需要Serenity和黄瓜
@RunWith(CucumberWithSerenity.class)
并且无法添加2个@RunWith注释。
Serenity和Cucumber运行的最佳方法是什么?
升级到Spring 4.2.1,你应该可以使用Serenity runner:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.