Class: Fastlane::Actions::XcovAction
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, output, return_type, return_value, sample_return_value, shell_out_should_use_bundle_exec?, step_text
Class Method Details
.author ⇒ Object
27
28
29
|
# File 'fastlane/lib/fastlane/actions/xcov.rb', line 27
def self.author
"nakiostudio"
end
|
.available_options ⇒ Object
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# File 'fastlane/lib/fastlane/actions/xcov.rb', line 31
def self.available_options
return [] unless Helper.mac?
require 'fastlane/core_ext/bundler_monkey_patch'
begin
Gem::Specification.find_by_name('xcov')
rescue Gem::LoadError
return []
end
require 'xcov'
Xcov::Options.available_options
end
|
.category ⇒ Object
66
67
68
|
# File 'fastlane/lib/fastlane/actions/xcov.rb', line 66
def self.category
:testing
end
|
.description ⇒ Object
16
17
18
|
# File 'fastlane/lib/fastlane/actions/xcov.rb', line 16
def self.description
"Nice code coverage reports without hassle"
end
|
.details ⇒ Object
20
21
22
23
24
25
|
# File 'fastlane/lib/fastlane/actions/xcov.rb', line 20
def self.details
[
"Create nice code coverage reports and post coverage summaries on Slack *(xcov gem is required)*.",
"More information: [https://github.com/nakiostudio/xcov](https://github.com/nakiostudio/xcov)."
].join("\n")
end
|
.example_code ⇒ Object
56
57
58
59
60
61
62
63
64
|
# File 'fastlane/lib/fastlane/actions/xcov.rb', line 56
def self.example_code
[
'xcov(
workspace: "YourWorkspace.xcworkspace",
scheme: "YourScheme",
output_directory: "xcov_output"
)'
]
end
|
.is_supported?(platform) ⇒ Boolean
52
53
54
|
# File 'fastlane/lib/fastlane/actions/xcov.rb', line 52
def self.is_supported?(platform)
[:ios, :mac].include?(platform)
end
|
.run(values) ⇒ Object
4
5
6
7
8
9
10
11
12
13
14
|
# File 'fastlane/lib/fastlane/actions/xcov.rb', line 4
def self.run(values)
Actions.verify_gem!('xcov')
require 'xcov'
if values[:xccov_file_direct_path].nil? && (path = Actions.lane_context[SharedValues::SCAN_GENERATED_XCRESULT_PATH])
UI.verbose("Pulling xcov 'xccov_file_direct_path' from SharedValues::SCAN_GENERATED_XCRESULT_PATH")
values[:xccov_file_direct_path] = path
end
Xcov::Manager.new(values).run
end
|