@@ -22,9 +22,10 @@ public class RunCommandConfig extends ConnectionConfig {
22
22
private boolean randomTestOrder = false ;
23
23
private final Integer randomTestOrderSeed ;
24
24
private final String [] tags ;
25
+ private final String [] coverageSchemes ;
25
26
26
- @ ConstructorProperties ({"connectString" , "suitePaths" , "reporters" , "outputAnsiColor" , "failureExitCode" , "skipCompatibilityCheck" , "includePackages" , "excludePackages" , "sourceMapping" , "testMapping" , "logConfigLevel" , "timeoutInMinutes" , "dbmsOutput" , "randomTestOrder" , "randomTestOrderSeed" , "tags" })
27
- public RunCommandConfig (String connectString , String [] suitePaths , ReporterConfig [] reporters , boolean outputAnsiColor , Integer failureExitCode , boolean skipCompatibilityCheck , String [] includePackages , String [] excludePackages , FileMapperConfig sourceMapping , FileMapperConfig testMapping , ConfigLevel logConfigLevel , Integer timeoutInMinutes , boolean dbmsOutput , boolean randomTestOrder , Integer randomTestOrderSeed , String [] tags ) {
27
+ @ ConstructorProperties ({"connectString" , "suitePaths" , "reporters" , "outputAnsiColor" , "failureExitCode" , "skipCompatibilityCheck" , "includePackages" , "excludePackages" , "sourceMapping" , "testMapping" , "logConfigLevel" , "timeoutInMinutes" , "dbmsOutput" , "randomTestOrder" , "randomTestOrderSeed" , "tags" , "coverageSchemes" })
28
+ public RunCommandConfig (String connectString , String [] suitePaths , ReporterConfig [] reporters , boolean outputAnsiColor , Integer failureExitCode , boolean skipCompatibilityCheck , String [] includePackages , String [] excludePackages , FileMapperConfig sourceMapping , FileMapperConfig testMapping , ConfigLevel logConfigLevel , Integer timeoutInMinutes , boolean dbmsOutput , boolean randomTestOrder , Integer randomTestOrderSeed , String [] tags , String [] coverageSchemes ) {
28
29
super (connectString );
29
30
this .suitePaths = suitePaths ;
30
31
this .reporters = reporters ;
@@ -41,6 +42,7 @@ public RunCommandConfig(String connectString, String[] suitePaths, ReporterConfi
41
42
this .randomTestOrder = randomTestOrder ;
42
43
this .randomTestOrderSeed = randomTestOrderSeed ;
43
44
this .tags = tags ;
45
+ this .coverageSchemes = coverageSchemes ;
44
46
}
45
47
46
48
public String [] getSuitePaths () {
@@ -102,4 +104,118 @@ public boolean isRandomTestOrder() {
102
104
public Integer getRandomTestOrderSeed () {
103
105
return randomTestOrderSeed ;
104
106
}
107
+
108
+ public String [] getCoverageSchemes () {
109
+ return coverageSchemes ;
110
+ }
111
+
112
+ public static class Builder {
113
+
114
+ private String connectString ;
115
+ private String [] suitePaths = new String [0 ];
116
+ private ReporterConfig [] reporters ;
117
+ private boolean outputAnsiColor ;
118
+ private Integer failureExitCode ;
119
+ private boolean skipCompatibilityCheck ;
120
+ private String [] includePackages = new String [0 ];
121
+ private String [] excludePackages = new String [0 ];
122
+ private FileMapperConfig sourceMapping ;
123
+ private FileMapperConfig testMapping ;
124
+ private ConfigLevel logConfigLevel ;
125
+ private Integer timeoutInMinutes ;
126
+ private boolean dbmsOutput ;
127
+ private boolean randomTestOrder ;
128
+ private Integer randomTestOrderSeed ;
129
+ private String [] tags = new String [0 ];
130
+ private String [] coverageSchemes = new String [0 ];
131
+
132
+ public Builder connectString (String connectString ) {
133
+ this .connectString = connectString ;
134
+ return this ;
135
+ }
136
+
137
+ public Builder suitePaths (String [] suitePaths ) {
138
+ this .suitePaths = suitePaths ;
139
+ return this ;
140
+ }
141
+
142
+ public Builder reporters (ReporterConfig [] reporters ) {
143
+ this .reporters = reporters ;
144
+ return this ;
145
+ }
146
+
147
+ public Builder outputAnsiColor (boolean outputAnsiColor ) {
148
+ this .outputAnsiColor = outputAnsiColor ;
149
+ return this ;
150
+ }
151
+
152
+ public Builder failureExitCode (Integer failureExitCode ) {
153
+ this .failureExitCode = failureExitCode ;
154
+ return this ;
155
+ }
156
+
157
+ public Builder skipCompatibilityCheck (boolean skipCompatibilityCheck ) {
158
+ this .skipCompatibilityCheck = skipCompatibilityCheck ;
159
+ return this ;
160
+ }
161
+
162
+ public Builder includePackages (String [] includePackages ) {
163
+ this .includePackages = includePackages ;
164
+ return this ;
165
+ }
166
+
167
+ public Builder excludePackages (String [] excludePackages ) {
168
+ this .excludePackages = excludePackages ;
169
+ return this ;
170
+ }
171
+
172
+ public Builder sourceMapping (FileMapperConfig sourceMapping ) {
173
+ this .sourceMapping = sourceMapping ;
174
+ return this ;
175
+ }
176
+
177
+ public Builder testMapping (FileMapperConfig testMapping ) {
178
+ this .testMapping = testMapping ;
179
+ return this ;
180
+ }
181
+
182
+ public Builder logConfigLevel (ConfigLevel logConfigLevel ) {
183
+ this .logConfigLevel = logConfigLevel ;
184
+ return this ;
185
+ }
186
+
187
+ public Builder timeoutInMinutes (Integer timeoutInMinutes ) {
188
+ this .timeoutInMinutes = timeoutInMinutes ;
189
+ return this ;
190
+ }
191
+
192
+ public Builder dbmsOutput (boolean dbmsOutput ) {
193
+ this .dbmsOutput = dbmsOutput ;
194
+ return this ;
195
+ }
196
+
197
+ public Builder randomTestOrder (boolean randomTestOrder ) {
198
+ this .randomTestOrder = randomTestOrder ;
199
+ return this ;
200
+ }
201
+
202
+ public Builder randomTestOrderSeed (Integer randomTestOrderSeed ) {
203
+ this .randomTestOrderSeed = randomTestOrderSeed ;
204
+ return this ;
205
+ }
206
+
207
+ public Builder tags (String [] tags ) {
208
+ this .tags = tags ;
209
+ return this ;
210
+ }
211
+
212
+ public Builder coverageSchemes (String [] coverageSchemes ) {
213
+ this .coverageSchemes = coverageSchemes ;
214
+ return this ;
215
+ }
216
+
217
+ public RunCommandConfig create () {
218
+ return new RunCommandConfig (connectString , suitePaths , reporters , outputAnsiColor , failureExitCode , skipCompatibilityCheck , includePackages , excludePackages , sourceMapping , testMapping , logConfigLevel , timeoutInMinutes , dbmsOutput , randomTestOrder , randomTestOrderSeed , tags , coverageSchemes );
219
+ }
220
+ }
105
221
}
0 commit comments