fastlane-plugin-aws_device_farm 0.3.16.pre.alpha.pre.122 → 0.3.16.pre.alpha.pre.126
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3592492dc92fa15371839ee16fcf46571f98bb6c414bfbb6502df51c19acfa3a
|
4
|
+
data.tar.gz: c0439e45075f4306f284de74c4cbe00c8575fe9ee94394d338b36e7dc26d6181
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9de7694004d8d0097a5af6e26088d0699daf0fe6ca0f939ce4c5b23a3a6044585dd174a328a42fc0fbd0966d02adeb34e09a997fa3ea92a6381c0173e8cd5952
|
7
|
+
data.tar.gz: ae83104a17eaf3aa51980a3c6debbaabd9ae21e55b2757a0e43c90c48ac18bdc2dc6ec855fc53b0b602f84ad060c66d7a81c7e77e7e06086c763ffd2024f1538
|
@@ -493,7 +493,10 @@ module Fastlane
|
|
493
493
|
"time" => j.device_minutes.metered,
|
494
494
|
"test_suites" => test_suites
|
495
495
|
}
|
496
|
-
|
496
|
+
|
497
|
+
# need multi device support
|
498
|
+
file_prefix = "#{j.name}-#{j.device.os}"
|
499
|
+
Helper::AwsDeviceFarmHelper.create_junit_xml(test_results: test_results, file_path: params[:junit_xml_output_path], file_prefix: file_prefix) if params[:junit_xml]
|
497
500
|
end
|
498
501
|
end
|
499
502
|
|
@@ -6,7 +6,7 @@ module Fastlane
|
|
6
6
|
class AwsDeviceFarmHelper
|
7
7
|
|
8
8
|
# create Junit.xml
|
9
|
-
def self.create_junit_xml(test_results:, file_path:)
|
9
|
+
def self.create_junit_xml(test_results:, file_path:, file_prefix:)
|
10
10
|
doc = REXML::Document.new
|
11
11
|
doc << REXML::XMLDecl.new('1.0', 'UTF-8')
|
12
12
|
|
@@ -37,8 +37,11 @@ module Fastlane
|
|
37
37
|
end
|
38
38
|
|
39
39
|
# output
|
40
|
-
|
41
|
-
File.
|
40
|
+
file_name = "#{file_prefix}-#{File.basename(file_path)}"
|
41
|
+
file_dir_path = File.dirname(file_path)
|
42
|
+
|
43
|
+
FileUtils.mkdir_p(file_dir_path)
|
44
|
+
File.open("#{file_dir_path}/#{file_name}", 'w') do |file|
|
42
45
|
doc.write(file, indent=2)
|
43
46
|
end
|
44
47
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-aws_device_farm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.16.pre.alpha.pre.
|
4
|
+
version: 0.3.16.pre.alpha.pre.126
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Helmut Januschka
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-04
|
11
|
+
date: 2020-05-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|