48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# File 'lib/cloud_test/cli.rb', line 48
def start()
require 'open3'
config = Core.load_config
config['browsers'].keys.each { |browser_config_name|
Open3.popen2e({'CLOUD_TEST' =>browser_config_name.to_s}, "bundle" ,"exec", "cucumber", "-t","#{config['cucumber_tag'].to_s}") do |stdin, stdout_err, wait_thr|
unless options[:q]
while line = stdout_err.gets
puts line
end
end
exit_status = wait_thr.value
if exit_status == 0
puts "Test on browser: #{browser_config_name} was successful!"
else
puts "Test on browser: #{browser_config_name} was not successful!"
puts stdout_err
raise "did not work"
end
end
}
end
|