Class: Fastlane::Actions::XctestAction

Inherits:
Fastlane::Action show all
Defined in:
lib/fastlane/actions/xcodebuild.rb

Class Method Summary collapse

Methods inherited from Fastlane::Action

action_name, authors, details, output, sh

Class Method Details

.authorObject



416
417
418
# File 'lib/fastlane/actions/xcodebuild.rb', line 416

def self.author
  "dtrenz"
end

.available_optionsObject



399
400
401
402
403
404
405
406
407
408
409
410
# File 'lib/fastlane/actions/xcodebuild.rb', line 399

def self.available_options
  [
    ['archive', 'Set to true to build archive'],
    ['archive_path', 'The path to archive the to. Must contain `.xcarchive`'],
    ['workspace', 'The workspace to use'],
    ['scheme', 'The scheme to build'],
    ['build_settings', 'Hash of additional build information'],
    ['destination', 'The simulator to use, e.g. "name=iPhone 5s,OS=8.1"'],
    ['destination_timeout', 'The timeout for connecting to the simulator, in seconds'],
    ['output_style', 'Set the output format to one of: :standard (Colored UTF8 output, default), :basic (black & white ASCII outout)']
  ]
end

.descriptionObject



395
396
397
# File 'lib/fastlane/actions/xcodebuild.rb', line 395

def self.description
  "Runs tests on the given simulator"
end

.is_supported?(platform) ⇒ Boolean

Returns:

  • (Boolean)


412
413
414
# File 'lib/fastlane/actions/xcodebuild.rb', line 412

def self.is_supported?(platform)
  [:ios, :mac].include?platform
end

.run(params) ⇒ Object



389
390
391
392
393
# File 'lib/fastlane/actions/xcodebuild.rb', line 389

def self.run(params)
  params_hash = params || {}
  params_hash[:test] = true
  XcodebuildAction.run(params_hash)
end