semaphore_test_boosters 2.2.1 → 2.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/test_boosters/version.rb +1 -1
- data/rspec_formatters/semaphore_rspec3_json_formatter.rb +14 -9
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 590c85d7b12cd31c902565d266796ee97076a430
|
4
|
+
data.tar.gz: 19731cd1002e9bda080fad24f1db08b13cf05a57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 864c78cd9145390f046a196f19c8e6be30217384829b800ecdfb79b57a13381c9acda62f3650415993fac3835017487f145f1b3c5eb37f4b75e4db95708b6a54
|
7
|
+
data.tar.gz: 02ebed353437dd645b1f500c49bf24c7d366da95c80dc7b662df3fb8cc3d6cfdddbc68df9467affa030ca5856f3a3435c3210fc7cd3d1e605376e61e459830f4
|
@@ -35,16 +35,21 @@ class SemaphoreFormatter < RSpec::Core::Formatters::BaseFormatter
|
|
35
35
|
end
|
36
36
|
|
37
37
|
def file_path(example)
|
38
|
-
#
|
39
|
-
#
|
38
|
+
# For shared examples 'example.file_path' returns the path of the shared example file.
|
39
|
+
# This is not optinal for our use case because we can't estimate the duration of the
|
40
|
+
# original spec file.
|
40
41
|
#
|
41
|
-
#
|
42
|
-
#
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
# We are droping the angle brackets at the end.
|
42
|
+
# To resolve this, we use `example.metadata[:example_group]` that contains the correct
|
43
|
+
# file path for both shared examples and regular tests
|
44
|
+
|
45
|
+
find_example_group_root_path(example.metadata[:example_group])
|
46
|
+
end
|
47
47
|
|
48
|
-
|
48
|
+
def find_example_group_root_path(example_group)
|
49
|
+
if example_group.has_key?(:parent_example_group)
|
50
|
+
find_example_group_root_path(example_group[:parent_example_group])
|
51
|
+
else
|
52
|
+
example_group[:file_path]
|
53
|
+
end
|
49
54
|
end
|
50
55
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: semaphore_test_boosters
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Developers at Rendered Text
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-07-
|
11
|
+
date: 2017-07-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: semaphore_cucumber_booster_config
|