fastlane-plugin-test_center 3.1.1 → 3.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 934c5e82b4f5b4cce5187dc7858c81bc8d81bd0a
4
- data.tar.gz: a6138ad4d7c4a8fc49999d63e0a82c4b972c6914
3
+ metadata.gz: f119b2325ee765910138d7f6b2ebe56827a5878b
4
+ data.tar.gz: def9b17c46634e4b39a1c87a1d8ed999dd8a3468
5
5
  SHA512:
6
- metadata.gz: 5f56742dda76a28be4810215fce64bca57d01d557eda62398704978f7dbe5e35a64b7f17772ca644f3d878fce87e68da65a6cb36e615868af4e2ce80b83f94cd
7
- data.tar.gz: 10266eb4e9eff4b358f5cdb4d1cbf231c26e9d4fbeeda0725991c4c50cda8aac98c00eaf60be34bde293a750780c3fee57740920923969cd6e5863a9fa8fe882
6
+ metadata.gz: f40ad69b618f3cf3294adccbe56a9b47a6374907349b143e0bbab6605b0b084d7cabe50da8e6e52fd4a639f654e7d3bddc6273581f62a05ae13aa0b6badafeca
7
+ data.tar.gz: 9f776036eece1eb3a66dfe149033d2d12d9d61b14aac4d7688a965300c0d4bbd04c0da54fcc790b7b94fe12c502d04b11a25f1f9da472039efbfc07401dd48e5
@@ -14,7 +14,7 @@ module Fastlane
14
14
  title: "Summary for multi_scan (test_center v#{Fastlane::TestCenter::VERSION})"
15
15
  )
16
16
  end
17
- unless params[:test_without_building]
17
+ unless params[:test_without_building] || params[:skip_build]
18
18
  build_for_testing(
19
19
  params._values
20
20
  )
@@ -1,10 +1,14 @@
1
1
  module TestCenter
2
2
  module Helper
3
3
  require 'fastlane_core/ui/ui.rb'
4
+ require 'fastlane/actions/scan'
4
5
  require 'plist'
5
6
 
6
7
  class TestCollector
7
8
  def initialize(options)
9
+ unless options[:xctestrun] || options[:derived_data_path]
10
+ options[:derived_data_path] = default_derived_data_path(options)
11
+ end
8
12
  @xctestrun_path = options[:xctestrun] || derived_testrun_path(options[:derived_data_path], options[:scheme])
9
13
  unless @xctestrun_path && File.exist?(@xctestrun_path)
10
14
  FastlaneCore::UI.user_error!("Error: cannot find xctestrun file '#{@xctestrun_path}'")
@@ -13,6 +17,14 @@ module TestCenter
13
17
  @skip_testing = options[:skip_testing]
14
18
  end
15
19
 
20
+ def default_derived_data_path(options)
21
+ Scan.project = FastlaneCore::Project.new(
22
+ options.select { |k, v| %i[workspace project].include?(k) }
23
+ )
24
+ project_derived_data_path = Scan.project.build_settings(key: "BUILT_PRODUCTS_DIR")
25
+ File.expand_path("../../..", project_derived_data_path)
26
+ end
27
+
16
28
  def derived_testrun_path(derived_data_path, scheme)
17
29
  Dir.glob("#{derived_data_path}/Build/Products/#{scheme}*.xctestrun").first
18
30
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module TestCenter
3
- VERSION = "3.1.1"
3
+ VERSION = "3.1.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-test_center
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.1
4
+ version: 3.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lyndsey Ferguson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-21 00:00:00.000000000 Z
11
+ date: 2018-03-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: plist