Class: Fastlane::Actions::XctoolAction
Class Method Summary
collapse
action_name, authors, available_options, output, return_value, sh, step_text
Class Method Details
.author ⇒ Object
26
27
28
|
# File 'lib/fastlane/actions/xctool.rb', line 26
def self.author
"KrauseFx"
end
|
.description ⇒ Object
15
16
17
|
# File 'lib/fastlane/actions/xctool.rb', line 15
def self.description
"Run tests using xctool"
end
|
.details ⇒ Object
19
20
21
22
23
24
|
# File 'lib/fastlane/actions/xctool.rb', line 19
def self.details
[
"It is recommended to store the build configuration in the `.xctool-args` file.",
"More information available on GitHub: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Actions.md#xctool"
].join(' ')
end
|
.is_supported?(platform) ⇒ Boolean
30
31
32
|
# File 'lib/fastlane/actions/xctool.rb', line 30
def self.is_supported?(platform)
[:ios, :mac].include? platform
end
|
.run(params) ⇒ Object
4
5
6
7
8
9
10
11
12
13
|
# File 'lib/fastlane/actions/xctool.rb', line 4
def self.run(params)
UI.important("Have you seen the new 'scan' tool to run tests? https://github.com/fastlane/fastlane/tree/master/scan")
unless Helper.test?
UI.user_error!("xctool not installed, please install using `brew install xctool`") if `which xctool`.length == 0
end
params = [] if params.kind_of? FastlaneCore::Configuration
Actions.sh('xctool ' + params.join(' '))
end
|