Sha256: 7249e07204feb08b35972a585bfa6b5ae915caf97a255cbc5ea2ba6e0dfe466f
Contents?: true
Size: 770 Bytes
Versions: 8
Compression:
Stored size: 770 Bytes
Contents
require 'calabash' platform = ENV['PLATFORM'] case platform when 'android' require 'calabash/android' World(Calabash::Android) Calabash::Android.setup_defaults! when 'ios' require 'calabash/ios' World(Calabash::IOS) Calabash::IOS.setup_defaults! else message = if platform.nil? || platform.empty? 'No platform given' else "Invalid platform '#{platform}'. Expected 'android' or 'ios'" end failure_messages = [ 'ERROR! Unable to start the cucumber test:', message, "Use the profile 'android' or 'ios', or run cucumber using $ calabash run" ] Calabash::Logger.error(failure_messages.join("\n")) exit(1) end
Version data entries
8 entries across 8 versions & 1 rubygems