build_metrics_logger 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/build_metrics_logger.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3bb2bbd5c61351293f0efb00d5599b3fcb9c4485
|
4
|
+
data.tar.gz: 78a14a1610de697a4c2041ec99e26c9240e40ec9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea2cfc8da96c64c106a77ec011a35caa5ede19816c00c01c71da89567208faf748ff204abf3067df894076260bfa3416529312eb63a4bcd2bd9b5f48e2c3515c
|
7
|
+
data.tar.gz: 18011ab380fd8e38d93a17259da722bfbdc42ff9846bf7c53e0843ff2b21cf8f4723c82f10db2e5e95bd07810256a3ed80f33f26bf255b1ecf928f461e5459e5
|
data/lib/build_metrics_logger.rb
CHANGED
@@ -39,7 +39,7 @@ class BuildMetricsLogger
|
|
39
39
|
# prev_result = notification.example.metadata[:last_run_status].to_s
|
40
40
|
time = notification.example.execution_result.run_time.to_s
|
41
41
|
exception = notification.example.execution_result.exception.to_s.empty? ? "nil" : notification.example.execution_result.exception.to_s
|
42
|
-
test_data =
|
42
|
+
test_data = {id: id, description: description, location: location, passed: passed, time: time, exception: exception}
|
43
43
|
if @token
|
44
44
|
log_example_result(test_data)
|
45
45
|
end
|
@@ -50,7 +50,7 @@ class BuildMetricsLogger
|
|
50
50
|
if notification.examples[0].metadata[:e2e] == true #&& ENV.fetch('IS_LOCAL', 'true') == 'false'
|
51
51
|
time = notification.duration
|
52
52
|
passed = notification.failure_count == 0 ? true : false
|
53
|
-
build_data =
|
53
|
+
build_data = {time: time, passed: passed}
|
54
54
|
if @token
|
55
55
|
log_build_result(build_data)
|
56
56
|
end
|