rrrspec-client 0.4.5 → 0.4.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rrrspec/client/rspec_runner.rb +1 -0
- data/lib/rrrspec/client/slave_runner.rb +13 -2
- data/lib/rrrspec/client/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 58e07dcdb2138cc5cd08d7c50b4afe86584e9a4e95f82def52896b08e5beb8b6
|
4
|
+
data.tar.gz: e4e752e02a2858f28bad6de18a106a386847b1e93891d7604bb9d4d9ccddcb5b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf8f24ef07f23460f00ceb02e511499da27b02ed2b7fe7d8f066785e4d2a1d3ed54acf9848dd6b293361fd90cf7d50d53255bceff671a85293c0bd8d6846e807
|
7
|
+
data.tar.gz: 89bc0db44c53a3647496a4721d51d734e566d7b333187d891c19f8cebc99d5fbff5efc10774a925ddfe4dc9f1122e3151b5aed701911127cb42e280204e8ed91
|
@@ -92,7 +92,7 @@ module RRRSpec
|
|
92
92
|
end
|
93
93
|
|
94
94
|
class RedisReportingFormatter
|
95
|
-
RSpec::Core::Formatters.register(self, :example_passed, :example_pending, :example_failed)
|
95
|
+
RSpec::Core::Formatters.register(self, :example_passed, :example_pending, :example_failed, :dump_summary)
|
96
96
|
|
97
97
|
def initialize(_output)
|
98
98
|
self.class.reset
|
@@ -110,13 +110,18 @@ module RRRSpec
|
|
110
110
|
self.class.example_failed(notification)
|
111
111
|
end
|
112
112
|
|
113
|
+
def dump_summary(notification)
|
114
|
+
self.class.dump_summary(notification)
|
115
|
+
end
|
116
|
+
|
113
117
|
module ClassMethods
|
114
|
-
attr_reader :passed, :pending, :failed
|
118
|
+
attr_reader :passed, :pending, :failed, :errors_outside_of_examples_count
|
115
119
|
|
116
120
|
def reset
|
117
121
|
@passed = 0
|
118
122
|
@pending = 0
|
119
123
|
@failed = 0
|
124
|
+
@errors_outside_of_examples_count = 0
|
120
125
|
@timeout = false
|
121
126
|
end
|
122
127
|
|
@@ -135,9 +140,15 @@ module RRRSpec
|
|
135
140
|
end
|
136
141
|
end
|
137
142
|
|
143
|
+
def dump_summary(notification)
|
144
|
+
@errors_outside_of_examples_count = notification.errors_outside_of_examples_count
|
145
|
+
end
|
146
|
+
|
138
147
|
def status
|
139
148
|
if @timeout
|
140
149
|
'timeout'
|
150
|
+
elsif @errors_outside_of_examples_count != 0
|
151
|
+
'error'
|
141
152
|
elsif @failed != 0
|
142
153
|
'failed'
|
143
154
|
elsif @pending != 0
|