Sto usando Jbehave come framework BDD. Sto cercando un modo per generare automaticamente candidati metodo passo stub da scenari di testo comeauto generare stub metodo-passo candidato da scenari stext in JBehave
Given there is a flight
And there is a customer
When the customer books the flight
Then the customer is shown on the manifest
a Java in questo modo:
<@> 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() {
}
fa JBehave fornire come una funzionalità implicita o persone usano qualche IDE collegare ? Apprezzerò molto ogni aiuto qui.
Questa funzionalità esiste per cetriolo-jvm. Sto pensando di cambiare i motori a causa della mancanza di supporto per una funzionalità che dovrebbe far parte di qualsiasi motore di test bdd standard gold. – Ajax