fastlane-plugin-setup_fragile_tests_for_rescan 0.3.0 → 0.3.1

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: d417822ec8112b30c7d1a97bb2dfc3870ac00956
4
- data.tar.gz: 7f4639354e5c4309182b3cf81dad5515a60f4823
3
+ metadata.gz: 5fa3309bce5e3a34e9cc8ff106e1234f66d1a92b
4
+ data.tar.gz: 4dc93c1ae42dc5eb98c66815e0b76bd4c564ced7
5
5
  SHA512:
6
- metadata.gz: 288718bb82cf2d8442a375378551ed955a4f382ba43da55d83850a398b62435c2edc70574cc335e11836faffe85753542f3375214812e8da4b21eafec70a45b8
7
- data.tar.gz: 8018121b98b1f71fb79c4156f625d814112a78031ad4b4e3342421c526fd07d0ec20f53a086f79300d86475023c559c084845ad3642034553e73c71153490f53
6
+ metadata.gz: edb3dfbaeb73e3ce63c37daf8c1dc85e3c4a01d213ec9a7f4d77a42258f4bf01d67cc2538e7c829e7b4d221db4e53ec5c6127243452cd89a5a89d9f2f68fca23
7
+ data.tar.gz: 36b495b43ca6ec8ccd18a07a55121668f6d468587743b13c00108fbaa0b74f007488583bcd3a2d39797c8b8bdf77d4b2aa664b3dda53c9438b8b68508fbc0019
@@ -21,20 +21,19 @@ module Fastlane
21
21
  scheme = xcscheme(params)
22
22
  is_dirty = false
23
23
  summary = []
24
- report_file.elements.each('*/testsuite') do |testsuite|
25
- buildable_name = File.basename(testsuite.attributes['name'], '.*') << '.xctest'
24
+ report_file.elements.each('testsuites') do |testsuites|
25
+ buildable_name = testsuites.attributes['name']
26
26
 
27
27
  test_action = scheme.test_action
28
28
  testable = test_action.testables.find { |t| t.buildable_references[0].buildable_name == buildable_name }
29
29
  raise "Unable to find testable named #{buildable_name}" if testable.nil?
30
30
 
31
- testsuite.elements.each('testcase') do |testcase|
31
+ testsuites.elements.each('testsuite/testcase') do |testcase|
32
32
  skipped_test = Xcodeproj::XCScheme::TestAction::TestableReference::SkippedTest.new
33
33
  skipped_test.identifier = skipped_test_identifier(testcase.attributes['classname'], testcase.attributes['name'])
34
34
  testable.add_skipped_test(skipped_test)
35
35
  is_dirty = true
36
36
  summary << [skipped_test.identifier]
37
- testsuite.delete_element testcase
38
37
  end
39
38
  end
40
39
  if is_dirty
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module SetupFragileTestsForRescan
3
- VERSION = "0.3.0"
3
+ VERSION = "0.3.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-setup_fragile_tests_for_rescan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lyndsey Ferguson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-01 00:00:00.000000000 Z
11
+ date: 2017-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: xcodeproj