@@ -25,6 +25,7 @@ public class ExecutionSettings {
25
25
false ,
26
26
false ,
27
27
EarlyFlakeDetectionSettings .DEFAULT ,
28
+ TestManagementSettings .DEFAULT ,
28
29
null ,
29
30
Collections .emptyMap (),
30
31
Collections .emptyMap (),
@@ -39,6 +40,7 @@ public class ExecutionSettings {
39
40
private final boolean flakyTestRetriesEnabled ;
40
41
private final boolean impactedTestsDetectionEnabled ;
41
42
@ Nonnull private final EarlyFlakeDetectionSettings earlyFlakeDetectionSettings ;
43
+ @ Nonnull private final TestManagementSettings testManagementSettings ;
42
44
@ Nullable private final String itrCorrelationId ;
43
45
@ Nonnull private final Map <TestIdentifier , TestMetadata > skippableTests ;
44
46
@ Nonnull private final Map <String , BitSet > skippableTestsCoverage ;
@@ -54,6 +56,7 @@ public ExecutionSettings(
54
56
boolean flakyTestRetriesEnabled ,
55
57
boolean impactedTestsDetectionEnabled ,
56
58
@ Nonnull EarlyFlakeDetectionSettings earlyFlakeDetectionSettings ,
59
+ @ Nonnull TestManagementSettings testManagementSettings ,
57
60
@ Nullable String itrCorrelationId ,
58
61
@ Nonnull Map <TestIdentifier , TestMetadata > skippableTests ,
59
62
@ Nonnull Map <String , BitSet > skippableTestsCoverage ,
@@ -67,6 +70,7 @@ public ExecutionSettings(
67
70
this .flakyTestRetriesEnabled = flakyTestRetriesEnabled ;
68
71
this .impactedTestsDetectionEnabled = impactedTestsDetectionEnabled ;
69
72
this .earlyFlakeDetectionSettings = earlyFlakeDetectionSettings ;
73
+ this .testManagementSettings = testManagementSettings ;
70
74
this .itrCorrelationId = itrCorrelationId ;
71
75
this .skippableTests = skippableTests ;
72
76
this .skippableTestsCoverage = skippableTestsCoverage ;
@@ -105,6 +109,11 @@ public EarlyFlakeDetectionSettings getEarlyFlakeDetectionSettings() {
105
109
return earlyFlakeDetectionSettings ;
106
110
}
107
111
112
+ @ Nonnull
113
+ public TestManagementSettings getTestManagementSettings () {
114
+ return testManagementSettings ;
115
+ }
116
+
108
117
@ Nullable
109
118
public String getItrCorrelationId () {
110
119
return itrCorrelationId ;
@@ -162,6 +171,7 @@ public boolean equals(Object o) {
162
171
&& codeCoverageEnabled == that .codeCoverageEnabled
163
172
&& testSkippingEnabled == that .testSkippingEnabled
164
173
&& Objects .equals (earlyFlakeDetectionSettings , that .earlyFlakeDetectionSettings )
174
+ && Objects .equals (testManagementSettings , that .testManagementSettings )
165
175
&& Objects .equals (itrCorrelationId , that .itrCorrelationId )
166
176
&& Objects .equals (skippableTests , that .skippableTests )
167
177
&& Objects .equals (skippableTestsCoverage , that .skippableTestsCoverage )
@@ -178,6 +188,7 @@ public int hashCode() {
178
188
codeCoverageEnabled ,
179
189
testSkippingEnabled ,
180
190
earlyFlakeDetectionSettings ,
191
+ testManagementSettings ,
181
192
itrCorrelationId ,
182
193
skippableTests ,
183
194
skippableTestsCoverage ,
@@ -211,6 +222,8 @@ public static ByteBuffer serialize(ExecutionSettings settings) {
211
222
212
223
EarlyFlakeDetectionSettingsSerializer .serialize (s , settings .earlyFlakeDetectionSettings );
213
224
225
+ TestManagementSettingsSerializer .serialize (s , settings .testManagementSettings );
226
+
214
227
s .write (settings .itrCorrelationId );
215
228
s .write (
216
229
settings .skippableTests ,
@@ -238,6 +251,9 @@ public static ExecutionSettings deserialize(ByteBuffer buffer) {
238
251
EarlyFlakeDetectionSettings earlyFlakeDetectionSettings =
239
252
EarlyFlakeDetectionSettingsSerializer .deserialize (buffer );
240
253
254
+ TestManagementSettings testManagementSettings =
255
+ TestManagementSettingsSerializer .deserialize (buffer );
256
+
241
257
String itrCorrelationId = Serializer .readString (buffer );
242
258
243
259
Map <TestIdentifier , TestMetadata > skippableTests =
@@ -262,6 +278,7 @@ public static ExecutionSettings deserialize(ByteBuffer buffer) {
262
278
flakyTestRetriesEnabled ,
263
279
impactedTestsDetectionEnabled ,
264
280
earlyFlakeDetectionSettings ,
281
+ testManagementSettings ,
265
282
itrCorrelationId ,
266
283
skippableTests ,
267
284
skippableTestsCoverage ,
0 commit comments