class Testcube::Adapters::BaseAdapter

Attributes

api_key[RW]

Public Class Methods

bind(api_key) click to toggle source
# File lib/testcube/adapters/base_adapter.rb, line 6
def self.bind(api_key)
  adapter = new
  adapter.api_key = api_key
  if api_key
    adapter.bind
  else
    Testcube.logger.warn('No api key specified. Not recording!')
  end
  adapter
end

Public Instance Methods

bind() click to toggle source
# File lib/testcube/adapters/base_adapter.rb, line 17
def bind
  if Testcube::Config::Env.recording_enabled?
    Testcube.logger.info('Test suite time execution recording enabled.')
    bind_time_tracker
    bind_save_report
  end
end
bind_save_report() click to toggle source
# File lib/testcube/adapters/base_adapter.rb, line 29
def bind_save_report
  raise NotImplementedError
end
bind_time_tracker() click to toggle source
# File lib/testcube/adapters/base_adapter.rb, line 25
def bind_time_tracker
  raise NotImplementedError
end