2
我有任何通過jUnit手動運行黃瓜的例子嗎?通過jUnit BDD黃瓜測試
我有@RunWith(Cucumber.class),它有我所有的功能文件的簡單空類。
import cucumber.junit.Cucumber;
import org.junit.runner.RunWith;
@RunWith(Cucumber.class)
public class RunCukesTest {
}
而且簡單的運行它JUnit測試:
@Test
public void cucumberFirstPartTests()throws Exception{
Cucumber cucumber = new Cucumber(RunCukesFirstPart.class);
RunNotifier notifier = new RunNotifier();
cucumber.run(notifier);
}
是否有手動過濾測試,使用轉輪調度和黃瓜測試說明在所有的例子?看過文檔,但對我來說還不夠。我會欣賞任何鏈接。謝謝。
這裏沒有足夠的細節。發佈你的Spring配置和測試類的相關片段。 – Reimeus