gauge-ruby 0.4.3 → 0.5.4
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 +5 -5
- data/lib/code_parser.rb +52 -41
- data/lib/configuration.rb +37 -26
- data/lib/datastore.rb +6 -18
- data/lib/executor.rb +29 -36
- data/lib/gauge.rb +6 -19
- data/lib/gauge_messages.rb +12 -18
- data/lib/gauge_runtime.rb +14 -66
- data/lib/gauge_screenshot.rb +52 -0
- data/lib/log.rb +34 -28
- data/lib/messages_pb.rb +331 -0
- data/lib/method_cache.rb +21 -18
- data/lib/processors/cache_file_processor.rb +20 -31
- data/lib/processors/datastore_init_processor.rb +23 -30
- data/lib/processors/execute_step_request_processor.rb +11 -23
- data/lib/processors/execution_handler.rb +33 -33
- data/lib/processors/execution_hook_processors.rb +23 -36
- data/lib/processors/implementation_file_list_processor.rb +8 -21
- data/lib/processors/implementation_glob_pattern_processor.rb +15 -0
- data/lib/processors/kill_request_processor.rb +5 -17
- data/lib/processors/refactor_step_request_processor.rb +16 -28
- data/lib/processors/step_name_request_processor.rb +15 -30
- data/lib/processors/step_names_request_processor.rb +8 -22
- data/lib/processors/step_positions_request_processor.rb +9 -22
- data/lib/processors/step_validation_request_processor.rb +23 -37
- data/lib/processors/stub_implementation_processor.rb +10 -22
- data/lib/service_handlers.rb +110 -0
- data/lib/services_pb.rb +15 -0
- data/lib/services_services_pb.rb +165 -0
- data/lib/spec_pb.rb +272 -0
- data/lib/static_loader.rb +10 -22
- data/lib/table.rb +5 -17
- data/lib/util.rb +31 -44
- metadata +80 -21
- data/lib/api.pb.rb +0 -273
- data/lib/connector.rb +0 -45
- data/lib/message_processor.rb +0 -59
- data/lib/messages.pb.rb +0 -413
- data/lib/spec.pb.rb +0 -319
data/lib/connector.rb
DELETED
@@ -1,45 +0,0 @@
|
|
1
|
-
# Copyright 2015 ThoughtWorks, Inc.
|
2
|
-
|
3
|
-
# This file is part of Gauge-Ruby.
|
4
|
-
|
5
|
-
# Gauge-Ruby is free software: you can redistribute it and/or modify
|
6
|
-
# it under the terms of the GNU General Public License as published by
|
7
|
-
# the Free Software Foundation, either version 3 of the License, or
|
8
|
-
# (at your option) any later version.
|
9
|
-
|
10
|
-
# Gauge-Ruby is distributed in the hope that it will be useful,
|
11
|
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13
|
-
# GNU General Public License for more details.
|
14
|
-
|
15
|
-
# You should have received a copy of the GNU General Public License
|
16
|
-
# along with Gauge-Ruby. If not, see <http://www.gnu.org/licenses/>.
|
17
|
-
|
18
|
-
require 'protocol_buffers'
|
19
|
-
require_relative 'api.pb'
|
20
|
-
|
21
|
-
module Gauge
|
22
|
-
# @api private
|
23
|
-
module Connector
|
24
|
-
GAUGE_PORT_ENV = "GAUGE_INTERNAL_PORT"
|
25
|
-
HOST_NAME = 'localhost'
|
26
|
-
@@executionSocket = nil
|
27
|
-
|
28
|
-
|
29
|
-
def self.execution_socket
|
30
|
-
@@executionSocket
|
31
|
-
end
|
32
|
-
|
33
|
-
def self.make_connection
|
34
|
-
@@executionSocket = TCPSocket.open(HOST_NAME, Runtime.port_from_env_variable(GAUGE_PORT_ENV))
|
35
|
-
end
|
36
|
-
|
37
|
-
def self.message_length(socket)
|
38
|
-
ProtocolBuffers::Varint.decode socket
|
39
|
-
end
|
40
|
-
|
41
|
-
def self.step_value text
|
42
|
-
return text.gsub(/(<.*?>)/, "{}")
|
43
|
-
end
|
44
|
-
end
|
45
|
-
end
|
data/lib/message_processor.rb
DELETED
@@ -1,59 +0,0 @@
|
|
1
|
-
# Copyright 2015 ThoughtWorks, Inc.
|
2
|
-
|
3
|
-
# This file is part of Gauge-Ruby.
|
4
|
-
|
5
|
-
# Gauge-Ruby is free software: you can redistribute it and/or modify
|
6
|
-
# it under the terms of the GNU General Public License as published by
|
7
|
-
# the Free Software Foundation, either version 3 of the License, or
|
8
|
-
# (at your option) any later version.
|
9
|
-
|
10
|
-
# Gauge-Ruby is distributed in the hope that it will be useful,
|
11
|
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13
|
-
# GNU General Public License for more details.
|
14
|
-
|
15
|
-
# You should have received a copy of the GNU General Public License
|
16
|
-
# along with Gauge-Ruby. If not, see <http://www.gnu.org/licenses/>.
|
17
|
-
|
18
|
-
require_relative 'messages.pb'
|
19
|
-
require_relative 'executor'
|
20
|
-
require_relative 'table'
|
21
|
-
Dir[File.join(File.dirname(__FILE__), 'processors/*.rb')].each {|file| require file}
|
22
|
-
|
23
|
-
module Gauge
|
24
|
-
# @api private
|
25
|
-
class MessageProcessor
|
26
|
-
extend Processors
|
27
|
-
|
28
|
-
@processors = Hash.new
|
29
|
-
@processors[Messages::Message::MessageType::StepValidateRequest] = method(:process_step_validation_request)
|
30
|
-
@processors[Messages::Message::MessageType::ExecutionStarting] = method(:process_execution_start_request)
|
31
|
-
@processors[Messages::Message::MessageType::ExecutionEnding] = method(:process_execution_end_request)
|
32
|
-
@processors[Messages::Message::MessageType::SpecExecutionStarting] = method(:process_spec_execution_start_request)
|
33
|
-
@processors[Messages::Message::MessageType::SpecExecutionEnding] = method(:process_spec_execution_end_request)
|
34
|
-
@processors[Messages::Message::MessageType::ScenarioExecutionStarting] = method(:process_scenario_execution_start_request)
|
35
|
-
@processors[Messages::Message::MessageType::ScenarioExecutionEnding] = method(:process_scenario_execution_end_request)
|
36
|
-
@processors[Messages::Message::MessageType::StepExecutionStarting] = method(:process_step_execution_start_request)
|
37
|
-
@processors[Messages::Message::MessageType::StepExecutionEnding] = method(:process_step_execution_end_request)
|
38
|
-
@processors[Messages::Message::MessageType::ExecuteStep] = method(:process_execute_step_request)
|
39
|
-
@processors[Messages::Message::MessageType::StepNamesRequest] = method(:process_step_names_request)
|
40
|
-
@processors[Messages::Message::MessageType::KillProcessRequest] = method(:process_kill_processor_request)
|
41
|
-
@processors[Messages::Message::MessageType::SuiteDataStoreInit] = method(:process_datastore_init)
|
42
|
-
@processors[Messages::Message::MessageType::SpecDataStoreInit] = method(:process_datastore_init)
|
43
|
-
@processors[Messages::Message::MessageType::ScenarioDataStoreInit] = method(:process_datastore_init)
|
44
|
-
@processors[Messages::Message::MessageType::StepNameRequest] = method(:process_step_name_request)
|
45
|
-
@processors[Messages::Message::MessageType::RefactorRequest] = method(:refactor_step)
|
46
|
-
@processors[Messages::Message::MessageType::CacheFileRequest] = method(:process_cache_file_request)
|
47
|
-
@processors[Messages::Message::MessageType::StepPositionsRequest] = method(:process_step_positions_request)
|
48
|
-
@processors[Messages::Message::MessageType::ImplementationFileListRequest] = method(:process_implementation_file_list_request)
|
49
|
-
@processors[Messages::Message::MessageType::StubImplementationCodeRequest] = method(:process_stub_implementation_code_request)
|
50
|
-
|
51
|
-
def self.is_valid_message(message)
|
52
|
-
return @processors.has_key? message.messageType
|
53
|
-
end
|
54
|
-
|
55
|
-
def self.process_message(message)
|
56
|
-
@processors[message.messageType].call message
|
57
|
-
end
|
58
|
-
end
|
59
|
-
end
|
data/lib/messages.pb.rb
DELETED
@@ -1,413 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
-
|
4
|
-
require 'protocol_buffers'
|
5
|
-
|
6
|
-
begin; require 'spec.pb'; rescue LoadError; end
|
7
|
-
|
8
|
-
module Gauge
|
9
|
-
module Messages
|
10
|
-
# forward declarations
|
11
|
-
class KillProcessRequest < ::ProtocolBuffers::Message; end
|
12
|
-
class ExecutionStatusResponse < ::ProtocolBuffers::Message; end
|
13
|
-
class ExecutionStartingRequest < ::ProtocolBuffers::Message; end
|
14
|
-
class ExecutionEndingRequest < ::ProtocolBuffers::Message; end
|
15
|
-
class SpecExecutionStartingRequest < ::ProtocolBuffers::Message; end
|
16
|
-
class SpecExecutionEndingRequest < ::ProtocolBuffers::Message; end
|
17
|
-
class ScenarioExecutionStartingRequest < ::ProtocolBuffers::Message; end
|
18
|
-
class ScenarioExecutionEndingRequest < ::ProtocolBuffers::Message; end
|
19
|
-
class StepExecutionStartingRequest < ::ProtocolBuffers::Message; end
|
20
|
-
class StepExecutionEndingRequest < ::ProtocolBuffers::Message; end
|
21
|
-
class ExecutionInfo < ::ProtocolBuffers::Message; end
|
22
|
-
class SpecInfo < ::ProtocolBuffers::Message; end
|
23
|
-
class ScenarioInfo < ::ProtocolBuffers::Message; end
|
24
|
-
class StepInfo < ::ProtocolBuffers::Message; end
|
25
|
-
class ExecuteStepRequest < ::ProtocolBuffers::Message; end
|
26
|
-
class StepValidateRequest < ::ProtocolBuffers::Message; end
|
27
|
-
class StepValidateResponse < ::ProtocolBuffers::Message; end
|
28
|
-
class SuiteExecutionResult < ::ProtocolBuffers::Message; end
|
29
|
-
class StepNamesRequest < ::ProtocolBuffers::Message; end
|
30
|
-
class StepNamesResponse < ::ProtocolBuffers::Message; end
|
31
|
-
class ScenarioDataStoreInitRequest < ::ProtocolBuffers::Message; end
|
32
|
-
class SpecDataStoreInitRequest < ::ProtocolBuffers::Message; end
|
33
|
-
class SuiteDataStoreInitRequest < ::ProtocolBuffers::Message; end
|
34
|
-
class ParameterPosition < ::ProtocolBuffers::Message; end
|
35
|
-
class RefactorRequest < ::ProtocolBuffers::Message; end
|
36
|
-
class FileChanges < ::ProtocolBuffers::Message; end
|
37
|
-
class RefactorResponse < ::ProtocolBuffers::Message; end
|
38
|
-
class StepNameRequest < ::ProtocolBuffers::Message; end
|
39
|
-
class StepNameResponse < ::ProtocolBuffers::Message; end
|
40
|
-
class UnsupportedMessageResponse < ::ProtocolBuffers::Message; end
|
41
|
-
class CacheFileRequest < ::ProtocolBuffers::Message; end
|
42
|
-
class StepPositionsRequest < ::ProtocolBuffers::Message; end
|
43
|
-
class StepPositionsResponse < ::ProtocolBuffers::Message; end
|
44
|
-
class ImplementationFileListRequest < ::ProtocolBuffers::Message; end
|
45
|
-
class ImplementationFileListResponse < ::ProtocolBuffers::Message; end
|
46
|
-
class StubImplementationCodeRequest < ::ProtocolBuffers::Message; end
|
47
|
-
class TextDiff < ::ProtocolBuffers::Message; end
|
48
|
-
class FileDiff < ::ProtocolBuffers::Message; end
|
49
|
-
class Message < ::ProtocolBuffers::Message; end
|
50
|
-
|
51
|
-
class KillProcessRequest < ::ProtocolBuffers::Message
|
52
|
-
set_fully_qualified_name "gauge.messages.KillProcessRequest"
|
53
|
-
|
54
|
-
end
|
55
|
-
|
56
|
-
class ExecutionStatusResponse < ::ProtocolBuffers::Message
|
57
|
-
set_fully_qualified_name "gauge.messages.ExecutionStatusResponse"
|
58
|
-
|
59
|
-
optional ::Gauge::Messages::ProtoExecutionResult, :executionResult, 1
|
60
|
-
end
|
61
|
-
|
62
|
-
class ExecutionStartingRequest < ::ProtocolBuffers::Message
|
63
|
-
set_fully_qualified_name "gauge.messages.ExecutionStartingRequest"
|
64
|
-
|
65
|
-
optional ::Gauge::Messages::ExecutionInfo, :currentExecutionInfo, 1
|
66
|
-
end
|
67
|
-
|
68
|
-
class ExecutionEndingRequest < ::ProtocolBuffers::Message
|
69
|
-
set_fully_qualified_name "gauge.messages.ExecutionEndingRequest"
|
70
|
-
|
71
|
-
optional ::Gauge::Messages::ExecutionInfo, :currentExecutionInfo, 1
|
72
|
-
end
|
73
|
-
|
74
|
-
class SpecExecutionStartingRequest < ::ProtocolBuffers::Message
|
75
|
-
set_fully_qualified_name "gauge.messages.SpecExecutionStartingRequest"
|
76
|
-
|
77
|
-
optional ::Gauge::Messages::ExecutionInfo, :currentExecutionInfo, 1
|
78
|
-
end
|
79
|
-
|
80
|
-
class SpecExecutionEndingRequest < ::ProtocolBuffers::Message
|
81
|
-
set_fully_qualified_name "gauge.messages.SpecExecutionEndingRequest"
|
82
|
-
|
83
|
-
optional ::Gauge::Messages::ExecutionInfo, :currentExecutionInfo, 1
|
84
|
-
end
|
85
|
-
|
86
|
-
class ScenarioExecutionStartingRequest < ::ProtocolBuffers::Message
|
87
|
-
set_fully_qualified_name "gauge.messages.ScenarioExecutionStartingRequest"
|
88
|
-
|
89
|
-
optional ::Gauge::Messages::ExecutionInfo, :currentExecutionInfo, 1
|
90
|
-
end
|
91
|
-
|
92
|
-
class ScenarioExecutionEndingRequest < ::ProtocolBuffers::Message
|
93
|
-
set_fully_qualified_name "gauge.messages.ScenarioExecutionEndingRequest"
|
94
|
-
|
95
|
-
optional ::Gauge::Messages::ExecutionInfo, :currentExecutionInfo, 1
|
96
|
-
end
|
97
|
-
|
98
|
-
class StepExecutionStartingRequest < ::ProtocolBuffers::Message
|
99
|
-
set_fully_qualified_name "gauge.messages.StepExecutionStartingRequest"
|
100
|
-
|
101
|
-
optional ::Gauge::Messages::ExecutionInfo, :currentExecutionInfo, 1
|
102
|
-
end
|
103
|
-
|
104
|
-
class StepExecutionEndingRequest < ::ProtocolBuffers::Message
|
105
|
-
set_fully_qualified_name "gauge.messages.StepExecutionEndingRequest"
|
106
|
-
|
107
|
-
optional ::Gauge::Messages::ExecutionInfo, :currentExecutionInfo, 1
|
108
|
-
end
|
109
|
-
|
110
|
-
class ExecutionInfo < ::ProtocolBuffers::Message
|
111
|
-
set_fully_qualified_name "gauge.messages.ExecutionInfo"
|
112
|
-
|
113
|
-
optional ::Gauge::Messages::SpecInfo, :currentSpec, 1
|
114
|
-
optional ::Gauge::Messages::ScenarioInfo, :currentScenario, 2
|
115
|
-
optional ::Gauge::Messages::StepInfo, :currentStep, 3
|
116
|
-
optional :string, :stacktrace, 4
|
117
|
-
end
|
118
|
-
|
119
|
-
class SpecInfo < ::ProtocolBuffers::Message
|
120
|
-
set_fully_qualified_name "gauge.messages.SpecInfo"
|
121
|
-
|
122
|
-
optional :string, :name, 1
|
123
|
-
optional :string, :fileName, 2
|
124
|
-
optional :bool, :isFailed, 3
|
125
|
-
repeated :string, :tags, 4
|
126
|
-
end
|
127
|
-
|
128
|
-
class ScenarioInfo < ::ProtocolBuffers::Message
|
129
|
-
set_fully_qualified_name "gauge.messages.ScenarioInfo"
|
130
|
-
|
131
|
-
optional :string, :name, 1
|
132
|
-
optional :bool, :isFailed, 2
|
133
|
-
repeated :string, :tags, 3
|
134
|
-
end
|
135
|
-
|
136
|
-
class StepInfo < ::ProtocolBuffers::Message
|
137
|
-
set_fully_qualified_name "gauge.messages.StepInfo"
|
138
|
-
|
139
|
-
optional ::Gauge::Messages::ExecuteStepRequest, :step, 1
|
140
|
-
optional :bool, :isFailed, 2
|
141
|
-
optional :string, :stackTrace, 3
|
142
|
-
optional :string, :errorMessage, 4
|
143
|
-
end
|
144
|
-
|
145
|
-
class ExecuteStepRequest < ::ProtocolBuffers::Message
|
146
|
-
set_fully_qualified_name "gauge.messages.ExecuteStepRequest"
|
147
|
-
|
148
|
-
optional :string, :actualStepText, 1
|
149
|
-
optional :string, :parsedStepText, 2
|
150
|
-
optional :bool, :scenarioFailing, 3
|
151
|
-
repeated ::Gauge::Messages::Parameter, :parameters, 4
|
152
|
-
end
|
153
|
-
|
154
|
-
class StepValidateRequest < ::ProtocolBuffers::Message
|
155
|
-
set_fully_qualified_name "gauge.messages.StepValidateRequest"
|
156
|
-
|
157
|
-
optional :string, :stepText, 1
|
158
|
-
optional :int32, :numberOfParameters, 2
|
159
|
-
optional ::Gauge::Messages::ProtoStepValue, :stepValue, 3
|
160
|
-
end
|
161
|
-
|
162
|
-
class StepValidateResponse < ::ProtocolBuffers::Message
|
163
|
-
# forward declarations
|
164
|
-
|
165
|
-
# enums
|
166
|
-
module ErrorType
|
167
|
-
include ::ProtocolBuffers::Enum
|
168
|
-
|
169
|
-
set_fully_qualified_name "gauge.messages.StepValidateResponse.ErrorType"
|
170
|
-
|
171
|
-
STEP_IMPLEMENTATION_NOT_FOUND = 0
|
172
|
-
DUPLICATE_STEP_IMPLEMENTATION = 1
|
173
|
-
end
|
174
|
-
|
175
|
-
set_fully_qualified_name "gauge.messages.StepValidateResponse"
|
176
|
-
|
177
|
-
optional :bool, :isValid, 1
|
178
|
-
optional :string, :errorMessage, 2
|
179
|
-
optional ::Gauge::Messages::StepValidateResponse::ErrorType, :errorType, 3
|
180
|
-
optional :string, :suggestion, 4
|
181
|
-
end
|
182
|
-
|
183
|
-
class SuiteExecutionResult < ::ProtocolBuffers::Message
|
184
|
-
set_fully_qualified_name "gauge.messages.SuiteExecutionResult"
|
185
|
-
|
186
|
-
optional ::Gauge::Messages::ProtoSuiteResult, :suiteResult, 1
|
187
|
-
end
|
188
|
-
|
189
|
-
class StepNamesRequest < ::ProtocolBuffers::Message
|
190
|
-
set_fully_qualified_name "gauge.messages.StepNamesRequest"
|
191
|
-
|
192
|
-
end
|
193
|
-
|
194
|
-
class StepNamesResponse < ::ProtocolBuffers::Message
|
195
|
-
set_fully_qualified_name "gauge.messages.StepNamesResponse"
|
196
|
-
|
197
|
-
repeated :string, :steps, 1
|
198
|
-
end
|
199
|
-
|
200
|
-
class ScenarioDataStoreInitRequest < ::ProtocolBuffers::Message
|
201
|
-
set_fully_qualified_name "gauge.messages.ScenarioDataStoreInitRequest"
|
202
|
-
|
203
|
-
end
|
204
|
-
|
205
|
-
class SpecDataStoreInitRequest < ::ProtocolBuffers::Message
|
206
|
-
set_fully_qualified_name "gauge.messages.SpecDataStoreInitRequest"
|
207
|
-
|
208
|
-
end
|
209
|
-
|
210
|
-
class SuiteDataStoreInitRequest < ::ProtocolBuffers::Message
|
211
|
-
set_fully_qualified_name "gauge.messages.SuiteDataStoreInitRequest"
|
212
|
-
|
213
|
-
end
|
214
|
-
|
215
|
-
class ParameterPosition < ::ProtocolBuffers::Message
|
216
|
-
set_fully_qualified_name "gauge.messages.ParameterPosition"
|
217
|
-
|
218
|
-
optional :int32, :oldPosition, 1
|
219
|
-
optional :int32, :newPosition, 2
|
220
|
-
end
|
221
|
-
|
222
|
-
class RefactorRequest < ::ProtocolBuffers::Message
|
223
|
-
set_fully_qualified_name "gauge.messages.RefactorRequest"
|
224
|
-
|
225
|
-
optional ::Gauge::Messages::ProtoStepValue, :oldStepValue, 1
|
226
|
-
optional ::Gauge::Messages::ProtoStepValue, :newStepValue, 2
|
227
|
-
repeated ::Gauge::Messages::ParameterPosition, :paramPositions, 3
|
228
|
-
optional :bool, :saveChanges, 4
|
229
|
-
end
|
230
|
-
|
231
|
-
class FileChanges < ::ProtocolBuffers::Message
|
232
|
-
set_fully_qualified_name "gauge.messages.FileChanges"
|
233
|
-
|
234
|
-
optional :string, :fileName, 1
|
235
|
-
optional :string, :fileContent, 2
|
236
|
-
end
|
237
|
-
|
238
|
-
class RefactorResponse < ::ProtocolBuffers::Message
|
239
|
-
set_fully_qualified_name "gauge.messages.RefactorResponse"
|
240
|
-
|
241
|
-
optional :bool, :success, 1
|
242
|
-
optional :string, :error, 2
|
243
|
-
repeated :string, :filesChanged, 3
|
244
|
-
repeated ::Gauge::Messages::FileChanges, :fileChanges, 4
|
245
|
-
end
|
246
|
-
|
247
|
-
class StepNameRequest < ::ProtocolBuffers::Message
|
248
|
-
set_fully_qualified_name "gauge.messages.StepNameRequest"
|
249
|
-
|
250
|
-
optional :string, :stepValue, 1
|
251
|
-
end
|
252
|
-
|
253
|
-
class StepNameResponse < ::ProtocolBuffers::Message
|
254
|
-
set_fully_qualified_name "gauge.messages.StepNameResponse"
|
255
|
-
|
256
|
-
optional :bool, :isStepPresent, 1
|
257
|
-
repeated :string, :stepName, 2
|
258
|
-
optional :bool, :hasAlias, 3
|
259
|
-
optional :string, :fileName, 4
|
260
|
-
optional ::Gauge::Messages::Span, :span, 5
|
261
|
-
end
|
262
|
-
|
263
|
-
class UnsupportedMessageResponse < ::ProtocolBuffers::Message
|
264
|
-
set_fully_qualified_name "gauge.messages.UnsupportedMessageResponse"
|
265
|
-
|
266
|
-
optional :string, :message, 1
|
267
|
-
end
|
268
|
-
|
269
|
-
class CacheFileRequest < ::ProtocolBuffers::Message
|
270
|
-
set_fully_qualified_name "gauge.messages.CacheFileRequest"
|
271
|
-
|
272
|
-
optional :string, :content, 1
|
273
|
-
optional :string, :filePath, 2
|
274
|
-
optional :bool, :isClosed, 3
|
275
|
-
end
|
276
|
-
|
277
|
-
class StepPositionsRequest < ::ProtocolBuffers::Message
|
278
|
-
set_fully_qualified_name "gauge.messages.StepPositionsRequest"
|
279
|
-
|
280
|
-
optional :string, :filePath, 1
|
281
|
-
end
|
282
|
-
|
283
|
-
class StepPositionsResponse < ::ProtocolBuffers::Message
|
284
|
-
# forward declarations
|
285
|
-
class StepPosition < ::ProtocolBuffers::Message; end
|
286
|
-
|
287
|
-
set_fully_qualified_name "gauge.messages.StepPositionsResponse"
|
288
|
-
|
289
|
-
# nested messages
|
290
|
-
class StepPosition < ::ProtocolBuffers::Message
|
291
|
-
set_fully_qualified_name "gauge.messages.StepPositionsResponse.StepPosition"
|
292
|
-
|
293
|
-
optional :string, :stepValue, 1
|
294
|
-
optional ::Gauge::Messages::Span, :span, 2
|
295
|
-
end
|
296
|
-
|
297
|
-
repeated ::Gauge::Messages::StepPositionsResponse::StepPosition, :stepPositions, 1
|
298
|
-
optional :string, :error, 2
|
299
|
-
end
|
300
|
-
|
301
|
-
class ImplementationFileListRequest < ::ProtocolBuffers::Message
|
302
|
-
set_fully_qualified_name "gauge.messages.ImplementationFileListRequest"
|
303
|
-
|
304
|
-
end
|
305
|
-
|
306
|
-
class ImplementationFileListResponse < ::ProtocolBuffers::Message
|
307
|
-
set_fully_qualified_name "gauge.messages.ImplementationFileListResponse"
|
308
|
-
|
309
|
-
repeated :string, :implementationFilePaths, 1
|
310
|
-
end
|
311
|
-
|
312
|
-
class StubImplementationCodeRequest < ::ProtocolBuffers::Message
|
313
|
-
set_fully_qualified_name "gauge.messages.StubImplementationCodeRequest"
|
314
|
-
|
315
|
-
optional :string, :implementationFilePath, 1
|
316
|
-
repeated :string, :codes, 2
|
317
|
-
end
|
318
|
-
|
319
|
-
class TextDiff < ::ProtocolBuffers::Message
|
320
|
-
set_fully_qualified_name "gauge.messages.TextDiff"
|
321
|
-
|
322
|
-
optional ::Gauge::Messages::Span, :span, 1
|
323
|
-
optional :string, :content, 2
|
324
|
-
end
|
325
|
-
|
326
|
-
class FileDiff < ::ProtocolBuffers::Message
|
327
|
-
set_fully_qualified_name "gauge.messages.FileDiff"
|
328
|
-
|
329
|
-
optional :string, :filePath, 1
|
330
|
-
repeated ::Gauge::Messages::TextDiff, :textDiffs, 2
|
331
|
-
end
|
332
|
-
|
333
|
-
class Message < ::ProtocolBuffers::Message
|
334
|
-
# forward declarations
|
335
|
-
|
336
|
-
# enums
|
337
|
-
module MessageType
|
338
|
-
include ::ProtocolBuffers::Enum
|
339
|
-
|
340
|
-
set_fully_qualified_name "gauge.messages.Message.MessageType"
|
341
|
-
|
342
|
-
ExecutionStarting = 0
|
343
|
-
SpecExecutionStarting = 1
|
344
|
-
SpecExecutionEnding = 2
|
345
|
-
ScenarioExecutionStarting = 3
|
346
|
-
ScenarioExecutionEnding = 4
|
347
|
-
StepExecutionStarting = 5
|
348
|
-
StepExecutionEnding = 6
|
349
|
-
ExecuteStep = 7
|
350
|
-
ExecutionEnding = 8
|
351
|
-
StepValidateRequest = 9
|
352
|
-
StepValidateResponse = 10
|
353
|
-
ExecutionStatusResponse = 11
|
354
|
-
StepNamesRequest = 12
|
355
|
-
StepNamesResponse = 13
|
356
|
-
KillProcessRequest = 14
|
357
|
-
SuiteExecutionResult = 15
|
358
|
-
ScenarioDataStoreInit = 16
|
359
|
-
SpecDataStoreInit = 17
|
360
|
-
SuiteDataStoreInit = 18
|
361
|
-
StepNameRequest = 19
|
362
|
-
StepNameResponse = 20
|
363
|
-
RefactorRequest = 21
|
364
|
-
RefactorResponse = 22
|
365
|
-
UnsupportedMessageResponse = 23
|
366
|
-
CacheFileRequest = 24
|
367
|
-
StepPositionsRequest = 25
|
368
|
-
StepPositionsResponse = 26
|
369
|
-
ImplementationFileListRequest = 27
|
370
|
-
ImplementationFileListResponse = 28
|
371
|
-
StubImplementationCodeRequest = 29
|
372
|
-
FileDiff = 30
|
373
|
-
end
|
374
|
-
|
375
|
-
set_fully_qualified_name "gauge.messages.Message"
|
376
|
-
|
377
|
-
optional ::Gauge::Messages::Message::MessageType, :messageType, 1
|
378
|
-
optional :int64, :messageId, 2
|
379
|
-
optional ::Gauge::Messages::ExecutionStartingRequest, :executionStartingRequest, 3
|
380
|
-
optional ::Gauge::Messages::SpecExecutionStartingRequest, :specExecutionStartingRequest, 4
|
381
|
-
optional ::Gauge::Messages::SpecExecutionEndingRequest, :specExecutionEndingRequest, 5
|
382
|
-
optional ::Gauge::Messages::ScenarioExecutionStartingRequest, :scenarioExecutionStartingRequest, 6
|
383
|
-
optional ::Gauge::Messages::ScenarioExecutionEndingRequest, :scenarioExecutionEndingRequest, 7
|
384
|
-
optional ::Gauge::Messages::StepExecutionStartingRequest, :stepExecutionStartingRequest, 8
|
385
|
-
optional ::Gauge::Messages::StepExecutionEndingRequest, :stepExecutionEndingRequest, 9
|
386
|
-
optional ::Gauge::Messages::ExecuteStepRequest, :executeStepRequest, 10
|
387
|
-
optional ::Gauge::Messages::ExecutionEndingRequest, :executionEndingRequest, 11
|
388
|
-
optional ::Gauge::Messages::StepValidateRequest, :stepValidateRequest, 12
|
389
|
-
optional ::Gauge::Messages::StepValidateResponse, :stepValidateResponse, 13
|
390
|
-
optional ::Gauge::Messages::ExecutionStatusResponse, :executionStatusResponse, 14
|
391
|
-
optional ::Gauge::Messages::StepNamesRequest, :stepNamesRequest, 15
|
392
|
-
optional ::Gauge::Messages::StepNamesResponse, :stepNamesResponse, 16
|
393
|
-
optional ::Gauge::Messages::SuiteExecutionResult, :suiteExecutionResult, 17
|
394
|
-
optional ::Gauge::Messages::KillProcessRequest, :killProcessRequest, 18
|
395
|
-
optional ::Gauge::Messages::ScenarioDataStoreInitRequest, :scenarioDataStoreInitRequest, 19
|
396
|
-
optional ::Gauge::Messages::SpecDataStoreInitRequest, :specDataStoreInitRequest, 20
|
397
|
-
optional ::Gauge::Messages::SuiteDataStoreInitRequest, :suiteDataStoreInitRequest, 21
|
398
|
-
optional ::Gauge::Messages::StepNameRequest, :stepNameRequest, 22
|
399
|
-
optional ::Gauge::Messages::StepNameResponse, :stepNameResponse, 23
|
400
|
-
optional ::Gauge::Messages::RefactorRequest, :refactorRequest, 24
|
401
|
-
optional ::Gauge::Messages::RefactorResponse, :refactorResponse, 25
|
402
|
-
optional ::Gauge::Messages::UnsupportedMessageResponse, :unsupportedMessageResponse, 26
|
403
|
-
optional ::Gauge::Messages::CacheFileRequest, :cacheFileRequest, 27
|
404
|
-
optional ::Gauge::Messages::StepPositionsRequest, :stepPositionsRequest, 28
|
405
|
-
optional ::Gauge::Messages::StepPositionsResponse, :stepPositionsResponse, 29
|
406
|
-
optional ::Gauge::Messages::ImplementationFileListRequest, :implementationFileListRequest, 30
|
407
|
-
optional ::Gauge::Messages::ImplementationFileListResponse, :implementationFileListResponse, 31
|
408
|
-
optional ::Gauge::Messages::StubImplementationCodeRequest, :stubImplementationCodeRequest, 32
|
409
|
-
optional ::Gauge::Messages::FileDiff, :fileDiff, 33
|
410
|
-
end
|
411
|
-
|
412
|
-
end
|
413
|
-
end
|