Sha256: 0bb13b67b10beff55f8c45bae60199054d733c9f06eb019b33b94a981d4f83c8

Contents?: true

Size: 1.84 KB

Versions: 3

Compression:

Stored size: 1.84 KB

Contents

require 'rhospec'

class SpecRunner < MSpecScript
  def initialize
    config[:files] = []
    
    config[:files] << "spec/asynchttp_spec"
    config[:files] << "spec/crypt_spec"
    config[:files] << "spec/json_spec"
    config[:files] << "spec/xml_spec"
    config[:files] << "spec/rhofile_spec"
    config[:files] << "spec/date_spec"
    config[:files] << "spec/bsearch_spec"
    config[:files] << "spec/rho_spec"
    config[:files] << "spec/rho_controller_spec"

    config[:files] << [ "spec/rhom_object_spec",
        [ {:schema_model=>true, :sync_model=>true},  {:schema_model=>true, :sync_model=>false},
          {:schema_model=>false, :sync_model=>true}, {:schema_model=>false, :sync_model=>false} ] ]

    config[:files] << "spec/contacts_spec" unless System.get_property('device_name') == 'Win32'
    # Disable events specs on Android because emulator doesn't contain Calendar provider
    config[:files] << "spec/events_spec"  unless System.get_property('device_name') == 'Win32' or System.get_property('platform') == 'ANDROID'
    
    config[:files] << "spec/barcode_spec" unless System.get_property('device_name') == 'Win32'            
    config[:files] << "spec/mapview_spec"  unless System.get_property('platform') == 'WINDOWS'    
    config[:files] << "spec/nativebar_spec" if System.get_property('platform') == 'APPLE' || System.get_property('platform') == 'ANDROID'
    config[:files] << "spec/navbar_spec" if System.get_property('platform') == 'APPLE' || System.get_property('platform') == 'ANDROID'

    config[:files] << "spec/xruby_spec" if defined? RHO_ME

    config[:files] << [ "spec/syncengine_spec", [ {:schema_model=>true }, {:schema_model=>false } ] ]

    config[:files] << "spec/blobsync_spec"
    config[:files] << "spec/bulksync_spec"
  end

  def run
    MSpec.register_files config[:files]

    MSpec.process
    MSpec.exit_code
  end
  
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rhodes-2.2.0 spec/phone_spec/app/spec_runner.rb
rhodes-2.2.0.beta.3 spec/phone_spec/app/spec_runner.rb
rhodes-2.2.0.beta.2 spec/phone_spec/app/spec_runner.rb