Class: Xcov::Manager

Inherits:
Object
  • Object
show all
Defined in:
lib/xcov/manager.rb

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Manager

Returns a new instance of Manager.



13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/xcov/manager.rb', line 13

def initialize(options)
  # Set command options
  Xcov.config = options

  # Set project options
  FastlaneCore::Project.detect_projects(options)
  Xcov.project = FastlaneCore::Project.new(options)

  # Set ignored files handler
  Xcov.ignore_handler = IgnoreHandler.new

  # Print summary
  FastlaneCore::PrintTable.print_values(config: options, hide_keys: [:slack_url], title: "Summary for xcov #{Xcov::VERSION}")
end

Instance Method Details

#runObject



28
29
30
31
32
33
34
# File 'lib/xcov/manager.rb', line 28

def run
  # Run xcov
  json_report = parse_xccoverage
  report = generate_xcov_report(json_report)
  validate_report(report)
  submit_to_coveralls(report)
end