gauge-ruby 0.4.3 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/api_pb.rb +182 -0
- data/lib/connector.rb +2 -2
- data/lib/executor.rb +19 -17
- data/lib/gauge_runtime.rb +21 -15
- data/lib/lsp_pb.rb +16 -0
- data/lib/lsp_server.rb +78 -0
- data/lib/lsp_services_pb.rb +51 -0
- data/lib/message_processor.rb +24 -22
- data/lib/messages_pb.rb +296 -0
- data/lib/method_cache.rb +1 -1
- data/lib/processors/cache_file_processor.rb +15 -10
- data/lib/processors/datastore_init_processor.rb +4 -4
- data/lib/processors/execution_handler.rb +6 -5
- data/lib/processors/execution_hook_processors.rb +1 -1
- data/lib/processors/implementation_file_list_processor.rb +6 -2
- data/lib/processors/implementation_glob_pattern_processor.rb +36 -0
- data/lib/processors/refactor_step_request_processor.rb +13 -7
- data/lib/processors/step_name_request_processor.rb +14 -12
- data/lib/processors/step_names_request_processor.rb +8 -4
- data/lib/processors/step_positions_request_processor.rb +7 -3
- data/lib/processors/step_validation_request_processor.rb +23 -18
- data/lib/processors/stub_implementation_processor.rb +9 -4
- data/lib/spec_pb.rb +226 -0
- metadata +37 -5
- data/lib/api.pb.rb +0 -273
- data/lib/messages.pb.rb +0 -413
- data/lib/spec.pb.rb +0 -319
data/lib/spec.pb.rb
DELETED
@@ -1,319 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
-
|
4
|
-
require 'protocol_buffers'
|
5
|
-
|
6
|
-
module Gauge
|
7
|
-
module Messages
|
8
|
-
# forward declarations
|
9
|
-
class ProtoSpec < ::ProtocolBuffers::Message; end
|
10
|
-
class ProtoItem < ::ProtocolBuffers::Message; end
|
11
|
-
class ProtoScenario < ::ProtocolBuffers::Message; end
|
12
|
-
class Span < ::ProtocolBuffers::Message; end
|
13
|
-
class ProtoTableDrivenScenario < ::ProtocolBuffers::Message; end
|
14
|
-
class ProtoStep < ::ProtocolBuffers::Message; end
|
15
|
-
class ProtoConcept < ::ProtocolBuffers::Message; end
|
16
|
-
class ProtoTags < ::ProtocolBuffers::Message; end
|
17
|
-
class Fragment < ::ProtocolBuffers::Message; end
|
18
|
-
class Parameter < ::ProtocolBuffers::Message; end
|
19
|
-
class ProtoComment < ::ProtocolBuffers::Message; end
|
20
|
-
class ProtoTable < ::ProtocolBuffers::Message; end
|
21
|
-
class ProtoTableRow < ::ProtocolBuffers::Message; end
|
22
|
-
class ProtoStepExecutionResult < ::ProtocolBuffers::Message; end
|
23
|
-
class ProtoExecutionResult < ::ProtocolBuffers::Message; end
|
24
|
-
class ProtoHookFailure < ::ProtocolBuffers::Message; end
|
25
|
-
class ProtoSuiteResult < ::ProtocolBuffers::Message; end
|
26
|
-
class ProtoSpecResult < ::ProtocolBuffers::Message; end
|
27
|
-
class Error < ::ProtocolBuffers::Message; end
|
28
|
-
class ProtoStepValue < ::ProtocolBuffers::Message; end
|
29
|
-
|
30
|
-
# enums
|
31
|
-
module ExecutionStatus
|
32
|
-
include ::ProtocolBuffers::Enum
|
33
|
-
|
34
|
-
set_fully_qualified_name "gauge.messages.ExecutionStatus"
|
35
|
-
|
36
|
-
NOTEXECUTED = 0
|
37
|
-
PASSED = 1
|
38
|
-
FAILED = 2
|
39
|
-
SKIPPED = 3
|
40
|
-
end
|
41
|
-
|
42
|
-
class ProtoSpec < ::ProtocolBuffers::Message
|
43
|
-
set_fully_qualified_name "gauge.messages.ProtoSpec"
|
44
|
-
|
45
|
-
optional :string, :specHeading, 1
|
46
|
-
repeated ::Gauge::Messages::ProtoItem, :items, 2
|
47
|
-
optional :bool, :isTableDriven, 3
|
48
|
-
repeated ::Gauge::Messages::ProtoHookFailure, :preHookFailures, 4
|
49
|
-
repeated ::Gauge::Messages::ProtoHookFailure, :postHookFailures, 5
|
50
|
-
optional :string, :fileName, 6
|
51
|
-
repeated :string, :tags, 7
|
52
|
-
repeated :string, :preHookMessages, 8
|
53
|
-
repeated :string, :postHookMessages, 9
|
54
|
-
end
|
55
|
-
|
56
|
-
class ProtoItem < ::ProtocolBuffers::Message
|
57
|
-
# forward declarations
|
58
|
-
|
59
|
-
# enums
|
60
|
-
module ItemType
|
61
|
-
include ::ProtocolBuffers::Enum
|
62
|
-
|
63
|
-
set_fully_qualified_name "gauge.messages.ProtoItem.ItemType"
|
64
|
-
|
65
|
-
Step = 0
|
66
|
-
Comment = 1
|
67
|
-
Concept = 2
|
68
|
-
Scenario = 3
|
69
|
-
TableDrivenScenario = 4
|
70
|
-
Table = 5
|
71
|
-
Tags = 6
|
72
|
-
end
|
73
|
-
|
74
|
-
set_fully_qualified_name "gauge.messages.ProtoItem"
|
75
|
-
|
76
|
-
optional ::Gauge::Messages::ProtoItem::ItemType, :itemType, 1
|
77
|
-
optional ::Gauge::Messages::ProtoStep, :step, 2
|
78
|
-
optional ::Gauge::Messages::ProtoConcept, :concept, 3
|
79
|
-
optional ::Gauge::Messages::ProtoScenario, :scenario, 4
|
80
|
-
optional ::Gauge::Messages::ProtoTableDrivenScenario, :tableDrivenScenario, 5
|
81
|
-
optional ::Gauge::Messages::ProtoComment, :comment, 6
|
82
|
-
optional ::Gauge::Messages::ProtoTable, :table, 7
|
83
|
-
optional ::Gauge::Messages::ProtoTags, :tags, 8
|
84
|
-
end
|
85
|
-
|
86
|
-
class ProtoScenario < ::ProtocolBuffers::Message
|
87
|
-
set_fully_qualified_name "gauge.messages.ProtoScenario"
|
88
|
-
|
89
|
-
optional :string, :scenarioHeading, 1
|
90
|
-
optional :bool, :failed, 2
|
91
|
-
repeated ::Gauge::Messages::ProtoItem, :contexts, 3
|
92
|
-
repeated ::Gauge::Messages::ProtoItem, :scenarioItems, 4
|
93
|
-
optional ::Gauge::Messages::ProtoHookFailure, :preHookFailure, 5
|
94
|
-
optional ::Gauge::Messages::ProtoHookFailure, :postHookFailure, 6
|
95
|
-
repeated :string, :tags, 7
|
96
|
-
optional :int64, :executionTime, 8
|
97
|
-
optional :bool, :skipped, 9
|
98
|
-
repeated :string, :skipErrors, 10
|
99
|
-
optional :string, :ID, 11
|
100
|
-
repeated ::Gauge::Messages::ProtoItem, :tearDownSteps, 12
|
101
|
-
optional ::Gauge::Messages::Span, :span, 13
|
102
|
-
optional ::Gauge::Messages::ExecutionStatus, :executionStatus, 14
|
103
|
-
repeated :string, :preHookMessages, 15
|
104
|
-
repeated :string, :postHookMessages, 16
|
105
|
-
end
|
106
|
-
|
107
|
-
class Span < ::ProtocolBuffers::Message
|
108
|
-
set_fully_qualified_name "gauge.messages.Span"
|
109
|
-
|
110
|
-
optional :int64, :start, 1
|
111
|
-
optional :int64, :end, 2
|
112
|
-
optional :int64, :startChar, 3
|
113
|
-
optional :int64, :endChar, 4
|
114
|
-
end
|
115
|
-
|
116
|
-
class ProtoTableDrivenScenario < ::ProtocolBuffers::Message
|
117
|
-
set_fully_qualified_name "gauge.messages.ProtoTableDrivenScenario"
|
118
|
-
|
119
|
-
optional ::Gauge::Messages::ProtoScenario, :scenario, 1
|
120
|
-
optional :int32, :tableRowIndex, 2
|
121
|
-
end
|
122
|
-
|
123
|
-
class ProtoStep < ::ProtocolBuffers::Message
|
124
|
-
set_fully_qualified_name "gauge.messages.ProtoStep"
|
125
|
-
|
126
|
-
optional :string, :actualText, 1
|
127
|
-
optional :string, :parsedText, 2
|
128
|
-
repeated ::Gauge::Messages::Fragment, :fragments, 3
|
129
|
-
optional ::Gauge::Messages::ProtoStepExecutionResult, :stepExecutionResult, 4
|
130
|
-
repeated :string, :preHookMessages, 5
|
131
|
-
repeated :string, :postHookMessages, 6
|
132
|
-
end
|
133
|
-
|
134
|
-
class ProtoConcept < ::ProtocolBuffers::Message
|
135
|
-
set_fully_qualified_name "gauge.messages.ProtoConcept"
|
136
|
-
|
137
|
-
optional ::Gauge::Messages::ProtoStep, :conceptStep, 1
|
138
|
-
repeated ::Gauge::Messages::ProtoItem, :steps, 2
|
139
|
-
optional ::Gauge::Messages::ProtoStepExecutionResult, :conceptExecutionResult, 3
|
140
|
-
end
|
141
|
-
|
142
|
-
class ProtoTags < ::ProtocolBuffers::Message
|
143
|
-
set_fully_qualified_name "gauge.messages.ProtoTags"
|
144
|
-
|
145
|
-
repeated :string, :tags, 1
|
146
|
-
end
|
147
|
-
|
148
|
-
class Fragment < ::ProtocolBuffers::Message
|
149
|
-
# forward declarations
|
150
|
-
|
151
|
-
# enums
|
152
|
-
module FragmentType
|
153
|
-
include ::ProtocolBuffers::Enum
|
154
|
-
|
155
|
-
set_fully_qualified_name "gauge.messages.Fragment.FragmentType"
|
156
|
-
|
157
|
-
Text = 0
|
158
|
-
Parameter = 1
|
159
|
-
end
|
160
|
-
|
161
|
-
set_fully_qualified_name "gauge.messages.Fragment"
|
162
|
-
|
163
|
-
optional ::Gauge::Messages::Fragment::FragmentType, :fragmentType, 1
|
164
|
-
optional :string, :text, 2
|
165
|
-
optional ::Gauge::Messages::Parameter, :parameter, 3
|
166
|
-
end
|
167
|
-
|
168
|
-
class Parameter < ::ProtocolBuffers::Message
|
169
|
-
# forward declarations
|
170
|
-
|
171
|
-
# enums
|
172
|
-
module ParameterType
|
173
|
-
include ::ProtocolBuffers::Enum
|
174
|
-
|
175
|
-
set_fully_qualified_name "gauge.messages.Parameter.ParameterType"
|
176
|
-
|
177
|
-
Static = 0
|
178
|
-
Dynamic = 1
|
179
|
-
Special_String = 2
|
180
|
-
Special_Table = 3
|
181
|
-
Table = 4
|
182
|
-
end
|
183
|
-
|
184
|
-
set_fully_qualified_name "gauge.messages.Parameter"
|
185
|
-
|
186
|
-
optional ::Gauge::Messages::Parameter::ParameterType, :parameterType, 1
|
187
|
-
optional :string, :value, 2
|
188
|
-
optional :string, :name, 3
|
189
|
-
optional ::Gauge::Messages::ProtoTable, :table, 4
|
190
|
-
end
|
191
|
-
|
192
|
-
class ProtoComment < ::ProtocolBuffers::Message
|
193
|
-
set_fully_qualified_name "gauge.messages.ProtoComment"
|
194
|
-
|
195
|
-
optional :string, :text, 1
|
196
|
-
end
|
197
|
-
|
198
|
-
class ProtoTable < ::ProtocolBuffers::Message
|
199
|
-
set_fully_qualified_name "gauge.messages.ProtoTable"
|
200
|
-
|
201
|
-
optional ::Gauge::Messages::ProtoTableRow, :headers, 1
|
202
|
-
repeated ::Gauge::Messages::ProtoTableRow, :rows, 2
|
203
|
-
end
|
204
|
-
|
205
|
-
class ProtoTableRow < ::ProtocolBuffers::Message
|
206
|
-
set_fully_qualified_name "gauge.messages.ProtoTableRow"
|
207
|
-
|
208
|
-
repeated :string, :cells, 1
|
209
|
-
end
|
210
|
-
|
211
|
-
class ProtoStepExecutionResult < ::ProtocolBuffers::Message
|
212
|
-
set_fully_qualified_name "gauge.messages.ProtoStepExecutionResult"
|
213
|
-
|
214
|
-
optional ::Gauge::Messages::ProtoExecutionResult, :executionResult, 1
|
215
|
-
optional ::Gauge::Messages::ProtoHookFailure, :preHookFailure, 2
|
216
|
-
optional ::Gauge::Messages::ProtoHookFailure, :postHookFailure, 3
|
217
|
-
optional :bool, :skipped, 4
|
218
|
-
optional :string, :skippedReason, 5
|
219
|
-
end
|
220
|
-
|
221
|
-
class ProtoExecutionResult < ::ProtocolBuffers::Message
|
222
|
-
# forward declarations
|
223
|
-
|
224
|
-
# enums
|
225
|
-
module ErrorType
|
226
|
-
include ::ProtocolBuffers::Enum
|
227
|
-
|
228
|
-
set_fully_qualified_name "gauge.messages.ProtoExecutionResult.ErrorType"
|
229
|
-
|
230
|
-
ASSERTION = 0
|
231
|
-
VERIFICATION = 1
|
232
|
-
end
|
233
|
-
|
234
|
-
set_fully_qualified_name "gauge.messages.ProtoExecutionResult"
|
235
|
-
|
236
|
-
optional :bool, :failed, 1
|
237
|
-
optional :bool, :recoverableError, 2
|
238
|
-
optional :string, :errorMessage, 3
|
239
|
-
optional :string, :stackTrace, 4
|
240
|
-
optional :bytes, :screenShot, 5
|
241
|
-
optional :int64, :executionTime, 6
|
242
|
-
repeated :string, :message, 7
|
243
|
-
optional ::Gauge::Messages::ProtoExecutionResult::ErrorType, :errorType, 8
|
244
|
-
end
|
245
|
-
|
246
|
-
class ProtoHookFailure < ::ProtocolBuffers::Message
|
247
|
-
set_fully_qualified_name "gauge.messages.ProtoHookFailure"
|
248
|
-
|
249
|
-
optional :string, :stackTrace, 1
|
250
|
-
optional :string, :errorMessage, 2
|
251
|
-
optional :bytes, :screenShot, 3
|
252
|
-
optional :int32, :tableRowIndex, 4
|
253
|
-
end
|
254
|
-
|
255
|
-
class ProtoSuiteResult < ::ProtocolBuffers::Message
|
256
|
-
set_fully_qualified_name "gauge.messages.ProtoSuiteResult"
|
257
|
-
|
258
|
-
repeated ::Gauge::Messages::ProtoSpecResult, :specResults, 1
|
259
|
-
optional ::Gauge::Messages::ProtoHookFailure, :preHookFailure, 2
|
260
|
-
optional ::Gauge::Messages::ProtoHookFailure, :postHookFailure, 3
|
261
|
-
optional :bool, :failed, 4
|
262
|
-
optional :int32, :specsFailedCount, 5
|
263
|
-
optional :int64, :executionTime, 6
|
264
|
-
optional :float, :successRate, 7
|
265
|
-
optional :string, :environment, 8
|
266
|
-
optional :string, :tags, 9
|
267
|
-
optional :string, :projectName, 10
|
268
|
-
optional :string, :timestamp, 11
|
269
|
-
optional :int32, :specsSkippedCount, 12
|
270
|
-
repeated :string, :preHookMessages, 13
|
271
|
-
repeated :string, :postHookMessages, 14
|
272
|
-
end
|
273
|
-
|
274
|
-
class ProtoSpecResult < ::ProtocolBuffers::Message
|
275
|
-
set_fully_qualified_name "gauge.messages.ProtoSpecResult"
|
276
|
-
|
277
|
-
optional ::Gauge::Messages::ProtoSpec, :protoSpec, 1
|
278
|
-
optional :int32, :scenarioCount, 2
|
279
|
-
optional :int32, :scenarioFailedCount, 3
|
280
|
-
optional :bool, :failed, 4
|
281
|
-
repeated :int32, :failedDataTableRows, 5
|
282
|
-
optional :int64, :executionTime, 6
|
283
|
-
optional :bool, :skipped, 7
|
284
|
-
optional :int32, :scenarioSkippedCount, 8
|
285
|
-
repeated :int32, :skippedDataTableRows, 9
|
286
|
-
repeated ::Gauge::Messages::Error, :errors, 10
|
287
|
-
end
|
288
|
-
|
289
|
-
class Error < ::ProtocolBuffers::Message
|
290
|
-
# forward declarations
|
291
|
-
|
292
|
-
# enums
|
293
|
-
module ErrorType
|
294
|
-
include ::ProtocolBuffers::Enum
|
295
|
-
|
296
|
-
set_fully_qualified_name "gauge.messages.Error.ErrorType"
|
297
|
-
|
298
|
-
PARSE_ERROR = 0
|
299
|
-
VALIDATION_ERROR = 1
|
300
|
-
end
|
301
|
-
|
302
|
-
set_fully_qualified_name "gauge.messages.Error"
|
303
|
-
|
304
|
-
optional ::Gauge::Messages::Error::ErrorType, :type, 1
|
305
|
-
optional :string, :filename, 2
|
306
|
-
optional :int32, :lineNumber, 3
|
307
|
-
optional :string, :message, 4
|
308
|
-
end
|
309
|
-
|
310
|
-
class ProtoStepValue < ::ProtocolBuffers::Message
|
311
|
-
set_fully_qualified_name "gauge.messages.ProtoStepValue"
|
312
|
-
|
313
|
-
optional :string, :stepValue, 1
|
314
|
-
optional :string, :parameterizedStepValue, 2
|
315
|
-
repeated :string, :parameters, 3
|
316
|
-
end
|
317
|
-
|
318
|
-
end
|
319
|
-
end
|