[英]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.