1 に答える
0
before フックを使用して、次のように以前の実行を追跡します。
Before "@tag" do
unless $before_all_done
# do your thing
$before_all_done = true
end
end
フックの詳細については、 https://github.com/cucumber/cucumber/wiki/Hooksを参照してください。
于 2012-11-10T10:12:05.307 に答える