Class: Fastlane::Actions::XcovAction

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

Class Method Summary collapse

Methods inherited from Fastlane::Action

action_name, authors, output, return_value, sh, step_text

Class Method Details

.authorObject



19
20
21
# File 'lib/fastlane/actions/xcov.rb', line 19

def self.author
  "nakiostudio"
end

.available_optionsObject



23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# File 'lib/fastlane/actions/xcov.rb', line 23

def self.available_options
  # We call Gem::Specification.find_by_name in many more places than this, but for right now
  # this is the only place we're having trouble. If there are other reports about RubyGems
  # 2.6.2 causing problems, we may need to move this code and require it someplace better,
  # like fastlane_core
  require 'fastlane/core_ext/bundler_monkey_patch'

  begin
    Gem::Specification.find_by_name('xcov')
  rescue Gem::LoadError
    # Catched missing gem exception and returned empty array
    # to avoid unused_options_spec failure
    return []
  end

  require 'xcov'
  Xcov::Options.available_options
end

.descriptionObject



11
12
13
# File 'lib/fastlane/actions/xcov.rb', line 11

def self.description
  "Nice code coverage reports without hassle"
end

.detailsObject



15
16
17
# File 'lib/fastlane/actions/xcov.rb', line 15

def self.details
  "More information: https://github.com/nakiostudio/xcov"
end

.is_supported?(platform) ⇒ Boolean

Returns:

  • (Boolean)


42
43
44
# File 'lib/fastlane/actions/xcov.rb', line 42

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

.run(values) ⇒ Object



4
5
6
7
8
9
# File 'lib/fastlane/actions/xcov.rb', line 4

def self.run(values)
  Actions.verify_gem!('xcov')
  require 'xcov'

  Xcov::Manager.new.work(values)
end