build_metrics_logger 0.0.7 → 0.0.8
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: d4b716a7a204e4f11f6d383e58ca394b595b9e1a
|
4
|
+
data.tar.gz: 651692c7ac7f1388d3bd8462c97d3978a11e17c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f931dfb42a78aea72c94eae3685b9a330a0aa735ef9686ab31cdbe06d02e19d4601e03c3eb01bedcbfd928b37db4fc2cea325c307951e94447deb8364415bc0
|
7
|
+
data.tar.gz: 075b0636564c1231b1903d9a1a5d14a00d6065c05740d2ee1481d97b73a5a4ea5ed7aa1a89fc62a9589e1d6f8e2bc34f7c427c0e4831d7da0df8eaf4272b5854
|
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 = [id, description, location, passed,
|
42
|
+
test_data = [id, description, location, passed, time, exception]
|
43
43
|
if @token
|
44
44
|
log_example_result(test_data)
|
45
45
|
end
|
@@ -83,7 +83,7 @@ class BuildMetricsLogger
|
|
83
83
|
end
|
84
84
|
|
85
85
|
def log_build_result(data)
|
86
|
-
response =
|
86
|
+
response = HTTParty.post(build_result_url,
|
87
87
|
headers: {
|
88
88
|
"Authorization" => "Bearer #{@token}"
|
89
89
|
},
|