summaryrefslogtreecommitdiffstats
path: root/cucumber/features
diff options
context:
space:
mode:
authorPhilip Hands <phil@hands.com>2016-05-22 20:18:31 +0200
committerHolger Levsen <holger@layer-acht.org>2016-05-22 20:29:49 +0200
commit776f5f483c8d2e387b39d83caf66f8aa4e3017d0 (patch)
tree6a3f50aa623fdf78f2289362ac2e382b97e695c9 /cucumber/features
parentbff872a6b6777242a4effc5a4d747149766a46d2 (diff)
downloadjenkins.debian.net-776f5f483c8d2e387b39d83caf66f8aa4e3017d0.tar.xz
lvc: let's have loads of screenshots
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'cucumber/features')
-rw-r--r--cucumber/features/step_definitions/snapshots.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/cucumber/features/step_definitions/snapshots.rb b/cucumber/features/step_definitions/snapshots.rb
index 8b06ebd8..9108c0b5 100644
--- a/cucumber/features/step_definitions/snapshots.rb
+++ b/cucumber/features/step_definitions/snapshots.rb
@@ -223,8 +223,10 @@ def reach_checkpoint(name)
debug_log(scenario_indent +
"Step failed while creating checkpoint: #{s}",
:color => :red)
+ live_screenshot
raise e
end
+ live_screenshot
debug_log(step_indent + "#{step_action} #{s}", :color => :green)
step_action = "And"
end