Sha256: 244292d05bd34e84fbd34b8fac58f9aecd40e7329fe3868defeb8363145e7292

Contents?: true

Size: 1.24 KB

Versions: 139

Compression:

Stored size: 1.24 KB

Contents

require 'fastlane_core/print_table'
require_relative 'module'
require_relative 'runner'

module Scan
  class Manager
    attr_accessor :plist_files_before

    def work(options)
      Scan.config = options # we set this here to auto-detect missing values, which we need later on
      unless options[:derived_data_path].to_s.empty?
        self.plist_files_before = test_summary_filenames(Scan.config[:derived_data_path])
      end

      # Also print out the path to the used Xcode installation
      # We go 2 folders up, to not show "Contents/Developer/"
      values = Scan.config.values(ask: false)
      values[:xcode_path] = File.expand_path("../..", FastlaneCore::Helper.xcode_path)
      FastlaneCore::PrintTable.print_values(config: values,
                                         hide_keys: [:destination, :slack_url],
                                             title: "Summary for scan #{Fastlane::VERSION}")

      return Runner.new.run
    end

    def test_summary_filenames(derived_data_path)
      files = []

      # Xcode < 10
      files += Dir["#{derived_data_path}/**/Logs/Test/*TestSummaries.plist"]

      # Xcode 10
      files += Dir["#{derived_data_path}/**/Logs/Test/*.xcresult/TestSummaries.plist"]

      return files
    end
  end
end

Version data entries

139 entries across 139 versions & 4 rubygems

Version Path
fastlane-2.202.0 scan/lib/scan/manager.rb
fastlane-2.201.2 scan/lib/scan/manager.rb
fastlane-2.201.1 scan/lib/scan/manager.rb
fastlane-2.201.0 scan/lib/scan/manager.rb
fastlane-2.201.0.rc3 scan/lib/scan/manager.rb
fastlane-2.201.0.rc2 scan/lib/scan/manager.rb
fastlane-2.201.0.rc1 scan/lib/scan/manager.rb
fastlane-2.200.0 scan/lib/scan/manager.rb
fastlane-2.199.0 scan/lib/scan/manager.rb
fastlane-2.198.1 scan/lib/scan/manager.rb
fastlane-2.198.0 scan/lib/scan/manager.rb
fastlane-2.197.0 scan/lib/scan/manager.rb
fastlane-2.196.0 scan/lib/scan/manager.rb
fastlane-2.195.0 scan/lib/scan/manager.rb
fastlane-2.194.0 scan/lib/scan/manager.rb
fastlane-2.193.1 scan/lib/scan/manager.rb
fastlane-2.193.0 scan/lib/scan/manager.rb
fastlane-2.192.0 scan/lib/scan/manager.rb
fastlane-2.191.0 scan/lib/scan/manager.rb
fastlane-2.190.0 scan/lib/scan/manager.rb