Class: Fastlane::Actions::XctoolAction
Constant Summary
Fastlane::Action::AVAILABLE_CATEGORIES
Class Method Summary
collapse
action_name, authors, available_options, lane_context, method_missing, other_action, output, return_value, sample_return_value, sh, step_text
Class Method Details
.author ⇒ Object
27
28
29
|
# File 'lib/fastlane/actions/xctool.rb', line 27
def self.author
"KrauseFx"
end
|
.category ⇒ Object
50
51
52
|
# File 'lib/fastlane/actions/xctool.rb', line 50
def self.category
:testing
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
25
|
# File 'lib/fastlane/actions/xctool.rb', line 19
def self.details
[
"You can run any `xctool` action. This will require having [xctool](https://github.com/facebook/xctool) installed through [homebrew](http://brew.sh/).",
"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
|
.example_code ⇒ Object
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# File 'lib/fastlane/actions/xctool.rb', line 35
def self.example_code
[
'xctool :test',
'# If you prefer to have the build configuration stored in the `Fastfile`:
xctool :test, [
"--workspace", "\'AwesomeApp.xcworkspace\'",
"--scheme", "\'Schema Name\'",
"--configuration", "Debug",
"--sdk", "iphonesimulator",
"--arch", "i386"
].join(" ")'
]
end
|
.is_supported?(platform) ⇒ Boolean
31
32
33
|
# File 'lib/fastlane/actions/xctool.rb', line 31
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
|