Module: Calabash::Cucumber

Defined in:
lib/calabash-cucumber.rb,
lib/frank-calabash.rb,
lib/calabash-cucumber/map.rb,
lib/calabash-cucumber/uia.rb,
lib/calabash-cucumber/core.rb,
lib/calabash-cucumber/device.rb,
lib/calabash-cucumber/dylibs.rb,
lib/calabash-cucumber/dot_dir.rb,
lib/calabash-cucumber/logging.rb,
lib/calabash-cucumber/version.rb,
lib/calabash-cucumber/abstract.rb,
lib/calabash-cucumber/launcher.rb,
lib/calabash-cucumber/http/http.rb,
lib/calabash-cucumber/connection.rb,
lib/calabash-cucumber/ipad_1x_2x.rb,
lib/calabash-cucumber/log_tailer.rb,
lib/calabash-cucumber/operations.rb,
lib/calabash-cucumber/date_picker.rb,
lib/calabash-cucumber/environment.rb,
lib/calabash-cucumber/device_agent.rb,
lib/calabash-cucumber/http_helpers.rb,
lib/calabash-cucumber/wait_helpers.rb,
lib/calabash-cucumber/query_helpers.rb,
lib/calabash-cucumber/tests_helpers.rb,
lib/calabash-cucumber/usage_tracker.rb,
lib/calabash-cucumber/console_helpers.rb,
lib/calabash-cucumber/failure_helpers.rb,
lib/calabash-cucumber/keyboard_helpers.rb,
lib/calabash-cucumber/keychain_helpers.rb,
lib/calabash-cucumber/rotation_helpers.rb,
lib/calabash-cucumber/store/preferences.rb,
lib/calabash-cucumber/connection_helpers.rb,
lib/calabash-cucumber/status_bar_helpers.rb,
lib/calabash-cucumber/automator/automator.rb,
lib/calabash-cucumber/environment_helpers.rb,
lib/calabash-cucumber/automator/coordinates.rb,
lib/calabash-cucumber/automator/instruments.rb,
lib/calabash-cucumber/automator/device_agent.rb

Overview

The base sub module for Calabash iOS

Defined Under Namespace

Modules: ConsoleHelpers, Core, DatePicker, DotDir, EnvironmentHelpers, FailureHelpers, IPad, KeyboardHelpers, KeychainHelpers, Map, Operations, QueryHelpers, StatusBarHelpers, TestsHelpers, UIA, WaitHelpers Classes: Device, DeviceAgent, DeviceNotFoundError, LaunchError, Launcher, Preferences, ServerNotRespondingError

Constant Summary

VERSION =

The Calabash iOS gem version.

"0.21.2"
MIN_SERVER_VERSION =

The minimum required version of the Calabash embedded server.

"0.21.2"

Class Method Summary collapse

Class Method Details

.log_to_file(message) ⇒ Object

!@visibility private



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/calabash-cucumber/logging.rb', line 8

def self.log_to_file(message)
  timestamp = self.timestamp

  begin
    File.open(self.calabash_log_file, "a:UTF-8") do |file|
      message.split($-0).each do |line|
        file.write("#{timestamp} #{line}#{$-0}")
      end
    end
  rescue => e
    message =
      %Q{Could not write:

#{message}

to calabash.log because:

#{e}
}
    RunLoop.log_debug(message)
  end
end