build_metrics_logger 0.0.13 → 0.0.14
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 +0 -10
- 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: 9f546f9277f86ed0c07f2eb65988caedf2f37d89
|
4
|
+
data.tar.gz: 12f1f20f838d9b26677385b2659cc1eecb4260ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46bc0ca68ab4287435d50300339b1fc875c0f9493321936e3699bc0da3b975989b3cce299e9ea7cbc6977dcec47e75ac5fd93b59e5892eb461d73356abc1f185
|
7
|
+
data.tar.gz: 811d3a18abc4c80bdee37564beeae1ffc2cf24ed7ae25394b10e4625eed9ad7687de58e1bcf5b734e3637689884cc6dff6eb0996b5039a2c87cccd52143face3
|
data/lib/build_metrics_logger.rb
CHANGED
@@ -6,24 +6,15 @@ class BuildMetricsLogger
|
|
6
6
|
@build_id = ENV.fetch('BUILD_METRICS_LOGGER_ID')
|
7
7
|
end
|
8
8
|
|
9
|
-
def start(notification)
|
10
|
-
# "**Running before the entire suite**"
|
11
|
-
end
|
12
|
-
|
13
9
|
def dump_summary(notification)
|
14
|
-
# "**Running after the entire suite finishes**"
|
15
10
|
suite_finished(notification)
|
16
11
|
end
|
17
12
|
|
18
13
|
def example_passed(notification)
|
19
|
-
# "**This example passed. Neat!**"
|
20
|
-
|
21
14
|
example_finished(notification)
|
22
15
|
end
|
23
16
|
|
24
17
|
def example_failed(notification)
|
25
|
-
# "**This example failed :(**"
|
26
|
-
|
27
18
|
example_finished(notification)
|
28
19
|
end
|
29
20
|
|
@@ -33,7 +24,6 @@ class BuildMetricsLogger
|
|
33
24
|
description = notification.example.full_description.to_s
|
34
25
|
location = notification.example.location.to_s
|
35
26
|
passed = notification.example.execution_result.status.to_s == 'passed' ? true : false
|
36
|
-
# prev_result = notification.example.metadata[:last_run_status].to_s
|
37
27
|
time = notification.example.execution_result.run_time.to_s
|
38
28
|
exception = notification.example.execution_result.exception.to_s.empty? ? "nil" : notification.example.execution_result.exception.to_s
|
39
29
|
test_data = {id: id, description: description, location: location, passed: passed, time: time, exception: exception}
|