2016-04-26 46 views
0

我想爲我的量角器+黃瓜測試使用Grunt,我正在使用grunt-protractor-runner插件,但我意識到它沒有運行我的After步驟,因此我的測試失敗。Grunt +量角器+ CucumberJs

你推薦哪個插件?我試圖使用grunt-protractor-cucumber,我無法使它工作!

您能否協助?

回答

0

我們使用protractor cucumber framework,它很棒。

有了它,你可以做這樣的事情:

this.After({tags: ['@myCustomScenarioTag']}, function() { 
    //do stuff after a specific scenario has run 
});