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.225.0 scan/lib/scan/manager.rb
fastlane-2.224.0 scan/lib/scan/manager.rb
fastlane-2.223.1 scan/lib/scan/manager.rb
fastlane-2.223.0 scan/lib/scan/manager.rb
fastlane-2.222.0 scan/lib/scan/manager.rb
fastlane-2.221.1 scan/lib/scan/manager.rb
fastlane-2.221.0 scan/lib/scan/manager.rb
fastlane-2.220.0 scan/lib/scan/manager.rb
fastlane-2.219.0 scan/lib/scan/manager.rb
fastlane-2.218.0 scan/lib/scan/manager.rb
fastlane-security-patched-2.216.0 scan/lib/scan/manager.rb
fastlane-2.217.0 scan/lib/scan/manager.rb
fastlane-2.216.0 scan/lib/scan/manager.rb
fastlane-2.215.1 scan/lib/scan/manager.rb
fastlane-2.215.0 scan/lib/scan/manager.rb
fastlane-mercafacil-2.214.0 scan/lib/scan/manager.rb
fastlane-2.214.0 scan/lib/scan/manager.rb
fastlane-2.213.0 scan/lib/scan/manager.rb
fastlane-2.212.2 scan/lib/scan/manager.rb
fastlane_pricing_fix-2.212.1 scan/lib/scan/manager.rb