gunter_reporter 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/gunter_reporter/version.rb +1 -1
- data/lib/gunter_reporter.rb +3 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3660b25705f75b11dd52549bed49101bddc503253e5488174b8450006611fb18
|
4
|
+
data.tar.gz: 331f9553cd919fd60eb1577bee480886971cfe4a8dc31ed323b39d09760d6cd1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2740f7e7b2e7abddf3f2f69508f2517124ceabc286206b335dc3ee74ca17a6e903501818261f70ff03bcf368281f2772527424b56a7c4b80b04f9d3cc00b9e5
|
7
|
+
data.tar.gz: 62baf0646a6c6ffab2a01c872a6a8e5d2f3e1128c1200e4c4c427b768aaaeb05db686b4ca6f1713f2e51026b5833674d30a496d5f32b0ccd1a3e5613d0d2fd03
|
data/Gemfile.lock
CHANGED
data/lib/gunter_reporter.rb
CHANGED
@@ -18,14 +18,16 @@ class GunterReporter
|
|
18
18
|
|
19
19
|
def submit_results(environment_variables)
|
20
20
|
files = Dir.glob("tmp/gunter/#{environment_variables['TASK_ID']}/*")
|
21
|
-
files.
|
21
|
+
responses = files.map do |file|
|
22
22
|
report = File.read(file)
|
23
23
|
next unless XmlSimple.xml_in(report).key?('testcase') || XmlSimple.xml_in(report).dig('testsuite', 0, 'testcase')
|
24
24
|
|
25
25
|
form_data = environment_variables.merge(build_data).merge('report' => report)
|
26
26
|
response = submit_result(form_data)
|
27
27
|
print_result(response)
|
28
|
+
response
|
28
29
|
end
|
30
|
+
JSON.parse(responses.first.body)
|
29
31
|
end
|
30
32
|
|
31
33
|
private
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gunter_reporter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Calaway
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-05-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: xml-simple
|
@@ -111,8 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
111
111
|
- !ruby/object:Gem::Version
|
112
112
|
version: '0'
|
113
113
|
requirements: []
|
114
|
-
|
115
|
-
rubygems_version: 2.7.6
|
114
|
+
rubygems_version: 3.0.3
|
116
115
|
signing_key:
|
117
116
|
specification_version: 4
|
118
117
|
summary: Report test results to Gunter.
|