フック ファイル内からシナリオを開始する方法はありますか。After フックでは、失敗したシナリオの行と、そのシナリオが含まれているファイルまたは機能を取得し、cmd でその行を実行できるようにフォーマットして、失敗したシナリオだけを実行します。
例: features\homepage.feature:8 environment=' http://stage.homepage.local/ '
失敗したシナリオの After フックでこれを実行するのに助けが必要です
After() do |scenario|
if scenario.failed?
#code here w/ cucumber features\homepage.feature:8 environment='http://stage.homepage.local/'
end
end
これもできますか?