私はBDDフレームワークとしてJbehaveを使用しています。JBehaveのstextシナリオの候補ステップメソッドスタブを自動生成
<@> Given("there is a flight")
<[email protected]> Pending
public void thereIsAFlight() {
}
<@> Given("there is a customer") // note 'Given', even though story line is 'And'
<@> Pending
public void thereIsACustomer() {
}
<@> When("the customer books the flight")
<@> Pending
public void theCustomerBooksTheFlight() {
}
<@> Then("the customer is shown on the flight manifest")
<@> Pending
public void thenTheCustomerIsShownOnTheFlightManifest() {
}
暗黙の機能や人々は、いくつかのIDEを使用してんJBehaveがそれを提供します。私はこのようなJavaへ
Given there is a flight
And there is a customer
When the customer books the flight
Then the customer is shown on the manifest
などのテキストシナリオから候補ステップメソッド・スタブを自動生成する方法を探していますプラグイン?私はここで何か助けていただければ幸いです。
この機能はcucumber-jvmに存在します。私は、標準のbddテストエンジンに含まれるべき機能のサポートが不足しているため、エンジンを切り替えることを考えています。 – Ajax