cucumber-messages 26.0.0 → 27.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e5302c715e4d5fc56da98e60f4cbc0fafcceef03e4f7fe0dd68527c6e74d6f60
4
- data.tar.gz: 8c86529c2b40373226cbf452db6381ad2e77c339b58f41bb5adf6d850547e291
3
+ metadata.gz: 5941066364556550303a15836dfeee6245eca070a9e59b432245dbe6d45aba73
4
+ data.tar.gz: 1fec0889beae468eb990eb33044c8f7362b8385068538b23601c28c246f6002f
5
5
  SHA512:
6
- metadata.gz: 438f1742439d59375480e1a3ce71b81e3cf8ad82ea920a7670d6d7ea7a5ceb2806db434f1a3e144d44aee1fbb68b5fc3000f8e1ab1a8c48b30a019f02e58a6ac
7
- data.tar.gz: 53be964aab65aa2f6ffd21bc9089a7efe5480d83d1fb5da82f734be030184d5c5dc9228b1a2c184ff7e2c7eada1496a8c0875d25220d75913f5982f83f5e0917
6
+ metadata.gz: ca9abcb1927ff40b0d58f9e65d83d6f1b560951f4e76ff85da9421173984dc16c40567e2b8c49143f14b364778d5784037b7e11906c2745c22977ffd91a829d6
7
+ data.tar.gz: 4d20db64a3f05c1da300b13036007e2cda74249bc22e712fc3e9a7d326bf19bf2b963f7cfdb25c41d4bfe7ecbf90b45efbe89fdbe596ca81a9f2ed09bab95aae
data/VERSION CHANGED
@@ -1 +1 @@
1
- 26.0.0
1
+ 27.0.0
@@ -79,6 +79,8 @@ module Cucumber
79
79
  ##
80
80
  attr_reader :url
81
81
 
82
+ attr_reader :test_run_started_id
83
+
82
84
  def initialize(
83
85
  body: '',
84
86
  content_encoding: AttachmentContentEncoding::IDENTITY,
@@ -87,7 +89,8 @@ module Cucumber
87
89
  source: nil,
88
90
  test_case_started_id: nil,
89
91
  test_step_id: nil,
90
- url: nil
92
+ url: nil,
93
+ test_run_started_id: nil
91
94
  )
92
95
  @body = body
93
96
  @content_encoding = content_encoding
@@ -97,6 +100,7 @@ module Cucumber
97
100
  @test_case_started_id = test_case_started_id
98
101
  @test_step_id = test_step_id
99
102
  @url = url
103
+ @test_run_started_id = test_run_started_id
100
104
  super()
101
105
  end
102
106
 
@@ -118,7 +122,8 @@ module Cucumber
118
122
  source: Source.from_h(hash[:source]),
119
123
  test_case_started_id: hash[:testCaseStartedId],
120
124
  test_step_id: hash[:testStepId],
121
- url: hash[:url]
125
+ url: hash[:url],
126
+ test_run_started_id: hash[:testRunStartedId]
122
127
  )
123
128
  end
124
129
  end
@@ -48,6 +48,10 @@ module Cucumber
48
48
 
49
49
  attr_reader :test_step_started
50
50
 
51
+ attr_reader :test_run_hook_started
52
+
53
+ attr_reader :test_run_hook_finished
54
+
51
55
  attr_reader :undefined_parameter_type
52
56
 
53
57
  def initialize(
@@ -67,6 +71,8 @@ module Cucumber
67
71
  test_run_started: nil,
68
72
  test_step_finished: nil,
69
73
  test_step_started: nil,
74
+ test_run_hook_started: nil,
75
+ test_run_hook_finished: nil,
70
76
  undefined_parameter_type: nil
71
77
  )
72
78
  @attachment = attachment
@@ -85,6 +91,8 @@ module Cucumber
85
91
  @test_run_started = test_run_started
86
92
  @test_step_finished = test_step_finished
87
93
  @test_step_started = test_step_started
94
+ @test_run_hook_started = test_run_hook_started
95
+ @test_run_hook_finished = test_run_hook_finished
88
96
  @undefined_parameter_type = undefined_parameter_type
89
97
  super()
90
98
  end
@@ -116,6 +124,8 @@ module Cucumber
116
124
  test_run_started: TestRunStarted.from_h(hash[:testRunStarted]),
117
125
  test_step_finished: TestStepFinished.from_h(hash[:testStepFinished]),
118
126
  test_step_started: TestStepStarted.from_h(hash[:testStepStarted]),
127
+ test_run_hook_started: TestRunHookStarted.from_h(hash[:testRunHookStarted]),
128
+ test_run_hook_finished: TestRunHookFinished.from_h(hash[:testRunHookFinished]),
119
129
  undefined_parameter_type: UndefinedParameterType.from_h(hash[:undefinedParameterType])
120
130
  )
121
131
  end
@@ -16,16 +16,20 @@ module Cucumber
16
16
 
17
17
  attr_reader :tag_expression
18
18
 
19
+ attr_reader :type
20
+
19
21
  def initialize(
20
22
  id: '',
21
23
  name: nil,
22
24
  source_reference: SourceReference.new,
23
- tag_expression: nil
25
+ tag_expression: nil,
26
+ type: nil
24
27
  )
25
28
  @id = id
26
29
  @name = name
27
30
  @source_reference = source_reference
28
31
  @tag_expression = tag_expression
32
+ @type = type
29
33
  super()
30
34
  end
31
35
 
@@ -43,7 +47,8 @@ module Cucumber
43
47
  id: hash[:id],
44
48
  name: hash[:name],
45
49
  source_reference: SourceReference.from_h(hash[:sourceReference]),
46
- tag_expression: hash[:tagExpression]
50
+ tag_expression: hash[:tagExpression],
51
+ type: hash[:type]
47
52
  )
48
53
  end
49
54
  end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ # The code was auto-generated by {this script}[https://github.com/cucumber/messages/blob/main/codegen/codegen.rb]
4
+ module Cucumber
5
+ module Messages
6
+ class HookType
7
+ BEFORE_TEST_RUN = 'BEFORE_TEST_RUN'
8
+ AFTER_TEST_RUN = 'AFTER_TEST_RUN'
9
+ BEFORE_TEST_CASE = 'BEFORE_TEST_CASE'
10
+ AFTER_TEST_CASE = 'AFTER_TEST_CASE'
11
+ BEFORE_TEST_STEP = 'BEFORE_TEST_STEP'
12
+ AFTER_TEST_STEP = 'AFTER_TEST_STEP'
13
+ end
14
+ end
15
+ end
@@ -22,14 +22,21 @@ module Cucumber
22
22
 
23
23
  attr_reader :test_steps
24
24
 
25
+ ##
26
+ # Identifier for the test run that this test case belongs to
27
+ ##
28
+ attr_reader :test_run_started_id
29
+
25
30
  def initialize(
26
31
  id: '',
27
32
  pickle_id: '',
28
- test_steps: []
33
+ test_steps: [],
34
+ test_run_started_id: nil
29
35
  )
30
36
  @id = id
31
37
  @pickle_id = pickle_id
32
38
  @test_steps = test_steps
39
+ @test_run_started_id = test_run_started_id
33
40
  super()
34
41
  end
35
42
 
@@ -46,7 +53,8 @@ module Cucumber
46
53
  new(
47
54
  id: hash[:id],
48
55
  pickle_id: hash[:pickleId],
49
- test_steps: hash[:testSteps]&.map { |item| TestStep.from_h(item) }
56
+ test_steps: hash[:testSteps]&.map { |item| TestStep.from_h(item) },
57
+ test_run_started_id: hash[:testRunStartedId]
50
58
  )
51
59
  end
52
60
  end
@@ -28,16 +28,20 @@ module Cucumber
28
28
  ##
29
29
  attr_reader :exception
30
30
 
31
+ attr_reader :test_run_started_id
32
+
31
33
  def initialize(
32
34
  message: nil,
33
35
  success: false,
34
36
  timestamp: Timestamp.new,
35
- exception: nil
37
+ exception: nil,
38
+ test_run_started_id: nil
36
39
  )
37
40
  @message = message
38
41
  @success = success
39
42
  @timestamp = timestamp
40
43
  @exception = exception
44
+ @test_run_started_id = test_run_started_id
41
45
  super()
42
46
  end
43
47
 
@@ -55,7 +59,8 @@ module Cucumber
55
59
  message: hash[:message],
56
60
  success: hash[:success],
57
61
  timestamp: Timestamp.from_h(hash[:timestamp]),
58
- exception: Exception.from_h(hash[:exception])
62
+ exception: Exception.from_h(hash[:exception]),
63
+ test_run_started_id: hash[:testRunStartedId]
59
64
  )
60
65
  end
61
66
  end
@@ -0,0 +1,49 @@
1
+ # frozen_string_literal: true
2
+
3
+ # The code was auto-generated by {this script}[https://github.com/cucumber/messages/blob/main/codegen/codegen.rb]
4
+ module Cucumber
5
+ module Messages
6
+ ##
7
+ # Represents the TestRunHookFinished message in Cucumber's {message protocol}[https://github.com/cucumber/messages].
8
+ ##
9
+ ##
10
+ class TestRunHookFinished < Message
11
+ ##
12
+ # Identifier for the hook execution that has finished
13
+ ##
14
+ attr_reader :test_run_hook_started_id
15
+
16
+ attr_reader :result
17
+
18
+ attr_reader :timestamp
19
+
20
+ def initialize(
21
+ test_run_hook_started_id: '',
22
+ result: TestStepResult.new,
23
+ timestamp: Timestamp.new
24
+ )
25
+ @test_run_hook_started_id = test_run_hook_started_id
26
+ @result = result
27
+ @timestamp = timestamp
28
+ super()
29
+ end
30
+
31
+ ##
32
+ # Returns a new TestRunHookFinished from the given hash.
33
+ # If the hash keys are camelCased, they are properly assigned to the
34
+ # corresponding snake_cased attributes.
35
+ #
36
+ # Cucumber::Messages::TestRunHookFinished.from_h(some_hash) # => #<Cucumber::Messages::TestRunHookFinished:0x... ...>
37
+ ##
38
+ def self.from_h(hash)
39
+ return nil if hash.nil?
40
+
41
+ new(
42
+ test_run_hook_started_id: hash[:testRunHookStartedId],
43
+ result: TestStepResult.from_h(hash[:result]),
44
+ timestamp: Timestamp.from_h(hash[:timestamp])
45
+ )
46
+ end
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,60 @@
1
+ # frozen_string_literal: true
2
+
3
+ # The code was auto-generated by {this script}[https://github.com/cucumber/messages/blob/main/codegen/codegen.rb]
4
+ module Cucumber
5
+ module Messages
6
+ ##
7
+ # Represents the TestRunHookStarted message in Cucumber's {message protocol}[https://github.com/cucumber/messages].
8
+ ##
9
+ ##
10
+ class TestRunHookStarted < Message
11
+ ##
12
+ # Unique identifier for this hook execution
13
+ ##
14
+ attr_reader :id
15
+
16
+ ##
17
+ # Identifier for the test run that this hook execution belongs to
18
+ ##
19
+ attr_reader :test_run_started_id
20
+
21
+ ##
22
+ # Identifier for the hook that will be executed
23
+ ##
24
+ attr_reader :hook_id
25
+
26
+ attr_reader :timestamp
27
+
28
+ def initialize(
29
+ id: '',
30
+ test_run_started_id: '',
31
+ hook_id: '',
32
+ timestamp: Timestamp.new
33
+ )
34
+ @id = id
35
+ @test_run_started_id = test_run_started_id
36
+ @hook_id = hook_id
37
+ @timestamp = timestamp
38
+ super()
39
+ end
40
+
41
+ ##
42
+ # Returns a new TestRunHookStarted from the given hash.
43
+ # If the hash keys are camelCased, they are properly assigned to the
44
+ # corresponding snake_cased attributes.
45
+ #
46
+ # Cucumber::Messages::TestRunHookStarted.from_h(some_hash) # => #<Cucumber::Messages::TestRunHookStarted:0x... ...>
47
+ ##
48
+ def self.from_h(hash)
49
+ return nil if hash.nil?
50
+
51
+ new(
52
+ id: hash[:id],
53
+ test_run_started_id: hash[:testRunStartedId],
54
+ hook_id: hash[:hookId],
55
+ timestamp: Timestamp.from_h(hash[:timestamp])
56
+ )
57
+ end
58
+ end
59
+ end
60
+ end
@@ -10,10 +10,14 @@ module Cucumber
10
10
  class TestRunStarted < Message
11
11
  attr_reader :timestamp
12
12
 
13
+ attr_reader :id
14
+
13
15
  def initialize(
14
- timestamp: Timestamp.new
16
+ timestamp: Timestamp.new,
17
+ id: nil
15
18
  )
16
19
  @timestamp = timestamp
20
+ @id = id
17
21
  super()
18
22
  end
19
23
 
@@ -28,7 +32,8 @@ module Cucumber
28
32
  return nil if hash.nil?
29
33
 
30
34
  new(
31
- timestamp: Timestamp.from_h(hash[:timestamp])
35
+ timestamp: Timestamp.from_h(hash[:timestamp]),
36
+ id: hash[:id]
32
37
  )
33
38
  end
34
39
  end
@@ -26,13 +26,13 @@ module Cucumber
26
26
 
27
27
  ##
28
28
  # Pointer to all the matching `StepDefinition`s (if derived from a `PickleStep`)
29
+ # Each element represents a matching step definition. A size of 0 means `UNDEFINED`,
30
+ # and a size of 2+ means `AMBIGUOUS`
29
31
  ##
30
32
  attr_reader :step_definition_ids
31
33
 
32
34
  ##
33
35
  # A list of list of StepMatchArgument (if derived from a `PickleStep`).
34
- # Each element represents a matching step definition. A size of 0 means `UNDEFINED`,
35
- # and a size of 2+ means `AMBIGUOUS`
36
36
  ##
37
37
  attr_reader :step_match_arguments_lists
38
38
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cucumber-messages
3
3
  version: !ruby/object:Gem::Version
4
- version: 26.0.0
4
+ version: 27.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aslak Hellesøy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-15 00:00:00.000000000 Z
11
+ date: 2024-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cucumber-compatibility-kit
@@ -140,6 +140,7 @@ files:
140
140
  - lib/cucumber/messages/helpers/ndjson_to_message_enumerator.rb
141
141
  - lib/cucumber/messages/helpers/time_conversion.rb
142
142
  - lib/cucumber/messages/hook.rb
143
+ - lib/cucumber/messages/hook_type.rb
143
144
  - lib/cucumber/messages/java_method.rb
144
145
  - lib/cucumber/messages/java_stack_trace_element.rb
145
146
  - lib/cucumber/messages/location.rb
@@ -177,6 +178,8 @@ files:
177
178
  - lib/cucumber/messages/test_case_finished.rb
178
179
  - lib/cucumber/messages/test_case_started.rb
179
180
  - lib/cucumber/messages/test_run_finished.rb
181
+ - lib/cucumber/messages/test_run_hook_finished.rb
182
+ - lib/cucumber/messages/test_run_hook_started.rb
180
183
  - lib/cucumber/messages/test_run_started.rb
181
184
  - lib/cucumber/messages/test_step.rb
182
185
  - lib/cucumber/messages/test_step_finished.rb
@@ -210,8 +213,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
210
213
  - !ruby/object:Gem::Version
211
214
  version: 3.2.3
212
215
  requirements: []
213
- rubygems_version: 3.5.11
216
+ rubygems_version: 3.5.16
214
217
  signing_key:
215
218
  specification_version: 4
216
- summary: cucumber-messages-26.0.0
219
+ summary: cucumber-messages-27.0.0
217
220
  test_files: []