Module: Calabash_Runner

Defined in:
lib/rake_ci_tools/runners/calabash.rb

Class Method Summary collapse

Class Method Details

.close_simulatorObject



14
15
16
# File 'lib/rake_ci_tools/runners/calabash.rb', line 14

def self.close_simulator
    sh "/usr/bin/osascript -e 'tell app \"iPhone Simulator\" to quit'"
end

.enable_accessibilityObject



2
3
4
# File 'lib/rake_ci_tools/runners/calabash.rb', line 2

def self.enable_accessibility
    sh 'calabash-ios sim acc'
end

.reset_simulatorObject



6
7
8
# File 'lib/rake_ci_tools/runners/calabash.rb', line 6

def self.reset_simulator
    sh 'calabash-ios sim reset'
end

.sim_location(bundle_id) ⇒ Object



10
11
12
# File 'lib/rake_ci_tools/runners/calabash.rb', line 10

def self.sim_location(bundle_id)        
    sh "calabash-ios sim location on #{bundle_id}"
end