build_metrics_logger 0.0.5 → 0.0.7
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 +3 -4
- 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: 0e4de574bd4123d1d2c8526e2a590717657c0c0d
|
4
|
+
data.tar.gz: 1f95496b6c4f7266fb107e779a4ead72d6ec52ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a2e984337521a5bf98815db97c9447e83a6d85f60d7e9f0fc511900d98e06f6d1a122f490ebaad89e825ec500f29a13877a6486e0f25120cd3711fcce93723a
|
7
|
+
data.tar.gz: cc81ada1c4869329705fb4a18491f1ec6a4b116cd4b82755934069a091b900c9f59a5f0b4e1b0bd13486e4ac746c288ef58ef0c3c616c7fa58d0b1bff9233462
|
data/lib/build_metrics_logger.rb
CHANGED
@@ -7,14 +7,13 @@ class BuildMetricsLogger
|
|
7
7
|
@build_id = ENV.fetch('BUILD_METRICS_LOGGER_ID')
|
8
8
|
puts "Token: #{@token}"
|
9
9
|
puts "ID: #{@build_id}"
|
10
|
-
puts ENV.fetch('IS_LOCAL')
|
11
10
|
end
|
12
11
|
|
13
12
|
def start(notification)
|
14
13
|
# "**Running before the entire suite**"
|
15
14
|
end
|
16
15
|
|
17
|
-
def
|
16
|
+
def dump_summary(notification)
|
18
17
|
# "**Running after the entire suite finishes**"
|
19
18
|
suite_finished(notification)
|
20
19
|
end
|
@@ -32,7 +31,7 @@ class BuildMetricsLogger
|
|
32
31
|
end
|
33
32
|
|
34
33
|
def example_finished(notification)
|
35
|
-
if notification.example.metadata[:e2e] == true
|
34
|
+
if notification.example.metadata[:e2e] == true #&& ENV.fetch('IS_LOCAL', 'true') == 'false'
|
36
35
|
id = notification.example.id.to_s
|
37
36
|
description = notification.example.full_description.to_s
|
38
37
|
location = notification.example.location.to_s
|
@@ -48,7 +47,7 @@ class BuildMetricsLogger
|
|
48
47
|
end
|
49
48
|
|
50
49
|
def suite_finished(notification)
|
51
|
-
if notification.examples[0].metadata[:e2e] == true
|
50
|
+
if notification.examples[0].metadata[:e2e] == true #&& ENV.fetch('IS_LOCAL', 'true') == 'false'
|
52
51
|
time = notification.duration
|
53
52
|
passed = notification.failure_count == 0 ? true : false
|
54
53
|
build_data = [time, passed]
|