libraries/deploy-context/deploy/cucumber.rb in deploy-context-2.2.0.3.gec16643.4.g20d2d42.4.g17e8559.12.g831d0a8.4.gbb2ab14.12.g0bc028d vs libraries/deploy-context/deploy/cucumber.rb in deploy-context-2.13.0

- old
+ new

@@ -12,20 +12,24 @@ context.existing_cucumber_runtime.configure(context.cucumber_configuration(context, commands)) context.existing_cucumber_runtime end def cucumber(context, commands = []) - # context.chef_exec(context,['cucumber'] + commands) - context.existing_cucumber_runtime = cucumber_runtime(context, commands) - # The dup is to keep ARGV intact, so that tools like ruby-debug can respawn. cucumber_runtime(context, commands).run! + # context.chef_exec(context,['cucumber'] + commands) end def cucumber_test(context) context.git_build(context) context.log "Working in folder #{Dir.pwd}\nAnd context #{context.context_name} is created in folder #{context.context_folder} at version #{context.version}" context.cucumber(context) + end + + def cucumber_test_successful?(context) + result = cucumber_test(context) + context.log "\n\nCucumber test result: #{result}" + result end end end end