Module: Calabash_Runner

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

Class Method Summary collapse

Class Method Details

.close_simulatorObject



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

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
9
# File 'lib/rake_ci_tools/runners/calabash.rb', line 6

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

.sim_location(bundle_id) ⇒ Object



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

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