fastlane-plugin-xcode_test_reporter 0.1.5 → 0.1.6

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
- SHA256:
3
- metadata.gz: 7474a3181cb08114d9ae593d8017b0eecf001a20c5885b3a596acd95b8cbf575
4
- data.tar.gz: ccde43e88a5cbcd83351e383781f8a20c3607ffa3fe251b6f695d79485712c60
2
+ SHA1:
3
+ metadata.gz: e486fc3dfe44d79356fa77708f8f2031cbf9ace5
4
+ data.tar.gz: 0ebb3dd76ffa13b1099a3334b1057dcf6d33dd13
5
5
  SHA512:
6
- metadata.gz: b008d1891beb058152ff1094b0669168af231885f57263c11c3bf7808b329d6eddeab25c3f2d1db8da944dced8174eb2ec9a08b7fc1323262a93a9006b96e2bd
7
- data.tar.gz: a4efedb75ef16cf4dbaba95e6ac1d803618267041f315beeac8e62a77eb53e13764aaa3506bffc930cc4f282d28838a25897f0186fc10ee227812e6961e73102
6
+ metadata.gz: 96090b154849f587329e6a4c1206c7bfaa08642c562a372716498a0c1fe959567520fb8e336e901ce689ef7ac0dcce7e2e21374f8394ed7e6a30a62c3e4b781a
7
+ data.tar.gz: 4ac714b27a418c5d05bb7d8eff98a0ab2948fc8f537a6d1e0eab66286072ca2555a139d6594df0571ed3c393e5b0b0d5b3bc26fd8130df3db48abdd94ae4a063
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2018 Taisuke Hori <taisuke.horix@gmail.com>
3
+ Copyright (c) 2018 HORI Taisuke <taisuke.horix@gmail.com>
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # xcode_test_reporter plugin
2
2
 
3
3
  [![fastlane Plugin Badge](https://rawcdn.githack.com/fastlane/fastlane/master/fastlane/assets/plugin-badge.svg)](https://rubygems.org/gems/fastlane-plugin-xcode_test_reporter)
4
+ [![CircleCI](https://circleci.com/gh/taisukeh/fastlane-plugin-xcode_test_reporter.svg?style=svg)](https://circleci.com/gh/taisukeh/fastlane-plugin-xcode_test_reporter)
4
5
 
5
6
  ## Getting Started
6
7
 
@@ -22,9 +23,8 @@ Check out the [example `Fastfile`](fastlane/Fastfile) to see how to use this plu
22
23
 
23
24
  ```
24
25
  lane :test do
25
- run_test(scheme: "ThemojiUITests",
26
- output_types: "",
27
- fail_build: false)
26
+ run_tests(scheme: "ThemojiUITests",
27
+ fail_build: false)
28
28
 
29
29
  xcode_test_reporter(output_directory: ".", format: "junit,html")
30
30
  end
@@ -17,34 +17,34 @@ module Fastlane
17
17
  options['--output-json'] = true
18
18
 
19
19
  options_str = options.map do |k, v|
20
- v.is_a?(String) ? "#{k} #{v.shellescape}" : "#{k}"
20
+ v.kind_of?(String) ? "#{k} #{v.shellescape}" : k
21
21
  end.join(' ')
22
22
 
23
23
  command = "#{xcode_reporter_path} #{options_str}"
24
24
 
25
- resultText = `#{command}`
25
+ result_text = `#{command}`
26
26
  unless $?.success?
27
- UI.user_error!("xcode-test-reporter command failed.")
27
+ UI.user_error!('xcode-test-reporter command failed.')
28
28
  end
29
29
 
30
- resultJson = JSON.parse(resultText)
30
+ result_json = JSON.parse(result_text)
31
31
 
32
32
  result = {}
33
33
 
34
- resultJson.each do |report|
35
- result[report["file"]] = report["success"]
36
- UI.message "Generated: #{report["file"]}, success?: #{report["success"]}"
34
+ result_json.each do |report|
35
+ result[report['file']] = report['success']
36
+ UI.message("Generated: #{report['file']}, success?: #{report['success']}")
37
37
  end
38
38
 
39
- resultJson.each do |report|
40
- UI.test_failure!("Tests failed") if params[:fail_build] && !report["success"]
39
+ result_json.each do |report|
40
+ UI.test_failure!('Tests failed') if params[:fail_build] && !report['success']
41
41
  end
42
42
 
43
43
  return result
44
44
  end
45
45
 
46
46
  def self.xcode_reporter_path
47
- __dir__ + "/../../../../../bin/xcode-test-reporter"
47
+ __dir__ + '/../../../../../bin/xcode-test-reporter'
48
48
  end
49
49
 
50
50
  def self.description
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module XcodeTestReporter
3
- VERSION = "0.1.5"
3
+ VERSION = "0.1.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-xcode_test_reporter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Taisuke Hori
@@ -168,7 +168,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
168
168
  version: '0'
169
169
  requirements: []
170
170
  rubyforge_project:
171
- rubygems_version: 2.7.3
171
+ rubygems_version: 2.6.13
172
172
  signing_key:
173
173
  specification_version: 4
174
174
  summary: Generates JUnit or HTML report from Xcode `plist` test report files.