简体   繁体   English

Spring Boot BDD测试平静

[英]Spring Boot BDD Testing with serenity

we have a spring boot application which we want to test via serenity (former Thucydides). 我们有一个春季启动应用程序,我们想通过宁静测试(前Thucydides)。 Theoretically the tests can be run (if i test for example www.google.com everything works fine) but I want to test my own application and not google ;) 理论上可以运行测试(如果我测试例如www.google.com一切正常)但我想测试我自己的应用程序而不是google;)

So I need to start the application before running the tests. 所以我需要在运行测试之前启动应用程序。 Normally we have an annotation 通常我们有一个注释

@RunWith(SpringJUnit4ClassRunner.class)

at our test class. 在我们的考试课上。 but with Serenity and cucumber we need 但是我们需要Serenity和黄瓜

@RunWith(CucumberWithSerenity.class)

and it is not possible to add 2 @RunWith annotations. 并且无法添加2个@RunWith注释。

What is the best way to get the tests wit Serenity and Cucumber running? Serenity和Cucumber运行的最佳方法是什么?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM