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
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: e486fc3dfe44d79356fa77708f8f2031cbf9ace5
|
4
|
+
data.tar.gz: 0ebb3dd76ffa13b1099a3334b1057dcf6d33dd13
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
-
|
26
|
-
|
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.
|
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
|
-
|
25
|
+
result_text = `#{command}`
|
26
26
|
unless $?.success?
|
27
|
-
UI.user_error!(
|
27
|
+
UI.user_error!('xcode-test-reporter command failed.')
|
28
28
|
end
|
29
29
|
|
30
|
-
|
30
|
+
result_json = JSON.parse(result_text)
|
31
31
|
|
32
32
|
result = {}
|
33
33
|
|
34
|
-
|
35
|
-
result[report[
|
36
|
-
UI.message
|
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
|
-
|
40
|
-
UI.test_failure!(
|
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__ +
|
47
|
+
__dir__ + '/../../../../../bin/xcode-test-reporter'
|
48
48
|
end
|
49
49
|
|
50
50
|
def self.description
|
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.
|
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.
|
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.
|