0
可以將常見步驟函數映射到多個給定時間語句嗎?黃瓜JS的步驟定義的格式量角器CucumberJS - 將多個黃瓜語句映射到單步函數
this.Given(/^I have the following for a particular test$/, function() {
//code for the step
});
對於BDD(Specflow)的在C#版本中,多個小黃瓜語句可以被綁定到一個單獨的方法。對於例如
[Given(@"I have the following for a particular test")]
[Given(@"I have also the following for another test")]
public void GivenIHaveTheFollowingForAParticularTest()
{
}
有沒有什麼機制可以在CucumberJS中實現呢?