Class: Fastlane::Actions::RunTestsAction
Constant Summary
Fastlane::Action::AVAILABLE_CATEGORIES, Fastlane::Action::RETURN_TYPES
Class Method Summary
collapse
action_name, authors, deprecated_notes, lane_context, method_missing, other_action, sample_return_value, shell_out_should_use_bundle_exec?, step_text
Class Method Details
.author ⇒ Object
67
68
69
|
# File 'fastlane/lib/fastlane/actions/run_tests.rb', line 67
def self.author
"KrauseFx"
end
|
.available_options ⇒ Object
.category ⇒ Object
119
120
121
|
# File 'fastlane/lib/fastlane/actions/run_tests.rb', line 119
def self.category
:testing
end
|
.description ⇒ Object
51
52
53
|
# File 'fastlane/lib/fastlane/actions/run_tests.rb', line 51
def self.description
"Easily run tests of your iOS app (via _scan_)"
end
|
.details ⇒ Object
55
56
57
|
# File 'fastlane/lib/fastlane/actions/run_tests.rb', line 55
def self.details
"More information: https://docs.fastlane.tools/actions/scan/"
end
|
.example_code ⇒ Object
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
|
# File 'fastlane/lib/fastlane/actions/run_tests.rb', line 93
def self.example_code
[
'run_tests',
'scan # alias for "run_tests"',
'run_tests(
workspace: "App.xcworkspace",
scheme: "MyTests",
clean: false
)',
'# Build For Testing
run_tests(
derived_data_path: "my_folder",
build_for_testing: true
)',
'# run tests using derived data from prev. build
run_tests(
derived_data_path: "my_folder",
test_without_building: true
)',
'# or run it from an existing xctestrun package
run_tests(
xctestrun: "/path/to/mytests.xctestrun"
)'
]
end
|
.is_supported?(platform) ⇒ Boolean
87
88
89
|
# File 'fastlane/lib/fastlane/actions/run_tests.rb', line 87
def self.is_supported?(platform)
[:ios, :mac].include?(platform)
end
|
.output ⇒ Object
77
78
79
80
81
82
83
84
85
|
# File 'fastlane/lib/fastlane/actions/run_tests.rb', line 77
def self.output
[
['SCAN_DERIVED_DATA_PATH', 'The path to the derived data'],
['SCAN_GENERATED_PLIST_FILE', 'The generated plist file'],
['SCAN_GENERATED_PLIST_FILES', 'The generated plist files'],
['SCAN_GENERATED_XCRESULT_PATH', 'The path to the generated .xcresult'],
['SCAN_ZIP_BUILD_PRODUCTS_PATH', 'The path to the zipped build products']
]
end
|
.return_type ⇒ Object
63
64
65
|
# File 'fastlane/lib/fastlane/actions/run_tests.rb', line 63
def self.return_type
:hash
end
|
.return_value ⇒ Object
59
60
61
|
# File 'fastlane/lib/fastlane/actions/run_tests.rb', line 59
def self.return_value
'Outputs hash of results with the following keys: :number_of_tests, :number_of_failures, :number_of_retries, :number_of_tests_excluding_retries, :number_of_failures_excluding_retries'
end
|