@@ -27,6 +27,7 @@ describe("runs", () => {
27
27
return "end" ;
28
28
} ) ;
29
29
getErrorCodeFromErrStub = sandbox . stub ( ) . returns ( "random-error-code" ) ;
30
+ deleteResultsStub = sandbox . stub ( ) ;
30
31
} ) ;
31
32
32
33
afterEach ( ( ) => {
@@ -45,7 +46,8 @@ describe("runs", () => {
45
46
getErrorCodeFromErr : getErrorCodeFromErrStub ,
46
47
sendUsageReport : sendUsageReportStub ,
47
48
setUsageReportingFlag : setUsageReportingFlagStub ,
48
- getConfigPath : getConfigPathStub
49
+ getConfigPath : getConfigPathStub ,
50
+ deleteResults : deleteResultsStub
49
51
} ,
50
52
} ) ;
51
53
@@ -61,6 +63,7 @@ describe("runs", () => {
61
63
sinon . assert . calledOnce ( validateBstackJsonStub ) ;
62
64
sinon . assert . calledOnce ( setUsageReportingFlagStub ) ;
63
65
sinon . assert . calledOnce ( getErrorCodeFromErrStub ) ;
66
+ sinon . assert . calledOnce ( deleteResultsStub ) ;
64
67
sinon . assert . calledOnceWithExactly (
65
68
sendUsageReportStub ,
66
69
null ,
@@ -89,6 +92,7 @@ describe("runs", () => {
89
92
} ) ;
90
93
getErrorCodeFromMsgStub = sandbox . stub ( ) . returns ( "random-error-code" ) ;
91
94
capabilityValidatorStub = sandbox . stub ( ) ;
95
+ deleteResultsStub = sandbox . stub ( ) ;
92
96
} ) ;
93
97
94
98
afterEach ( ( ) => {
@@ -110,7 +114,8 @@ describe("runs", () => {
110
114
setUsername : setUsernameStub ,
111
115
setAccessKey : setAccessKeyStub ,
112
116
setBuildName : setBuildNameStub ,
113
- getConfigPath : getConfigPathStub
117
+ getConfigPath : getConfigPathStub ,
118
+ deleteResults : deleteResultsStub
114
119
} ,
115
120
"../helpers/capabilityHelper" : {
116
121
validate : capabilityValidatorStub ,
@@ -131,6 +136,7 @@ describe("runs", () => {
131
136
sinon . assert . calledOnce ( capabilityValidatorStub ) ;
132
137
sinon . assert . calledOnce ( setUsageReportingFlagStub ) ;
133
138
sinon . assert . calledOnce ( getErrorCodeFromMsgStub ) ;
139
+ sinon . assert . calledOnce ( deleteResultsStub ) ;
134
140
sinon . assert . calledOnceWithExactly (
135
141
sendUsageReportStub ,
136
142
bsConfig ,
@@ -161,6 +167,7 @@ describe("runs", () => {
161
167
capabilityValidatorStub = sandbox . stub ( ) ;
162
168
archiverStub = sandbox . stub ( ) ;
163
169
deleteZipStub = sandbox . stub ( ) ;
170
+ deleteResultsStub = sandbox . stub ( ) ;
164
171
} ) ;
165
172
166
173
afterEach ( ( ) => {
@@ -182,7 +189,8 @@ describe("runs", () => {
182
189
setAccessKey : setAccessKeyStub ,
183
190
setBuildName : setBuildNameStub ,
184
191
setUsageReportingFlag : setUsageReportingFlagStub ,
185
- getConfigPath : getConfigPathStub
192
+ getConfigPath : getConfigPathStub ,
193
+ deleteResults : deleteResultsStub
186
194
} ,
187
195
"../helpers/capabilityHelper" : {
188
196
validate : capabilityValidatorStub ,
@@ -212,6 +220,7 @@ describe("runs", () => {
212
220
sinon . assert . calledOnce ( archiverStub ) ;
213
221
sinon . assert . calledOnce ( setUsageReportingFlagStub ) ;
214
222
sinon . assert . calledOnce ( deleteZipStub ) ;
223
+ sinon . assert . calledOnce ( deleteResultsStub ) ;
215
224
sinon . assert . calledOnceWithExactly (
216
225
sendUsageReportStub ,
217
226
bsConfig ,
@@ -243,6 +252,7 @@ describe("runs", () => {
243
252
archiverStub = sandbox . stub ( ) ;
244
253
zipUploadStub = sandbox . stub ( ) ;
245
254
deleteZipStub = sandbox . stub ( ) ;
255
+ deleteResultsStub = sandbox . stub ( ) ;
246
256
} ) ;
247
257
248
258
afterEach ( ( ) => {
@@ -264,7 +274,8 @@ describe("runs", () => {
264
274
setAccessKey : setAccessKeyStub ,
265
275
setBuildName : setBuildNameStub ,
266
276
setUsageReportingFlag : setUsageReportingFlagStub ,
267
- getConfigPath : getConfigPathStub
277
+ getConfigPath : getConfigPathStub ,
278
+ deleteResults : deleteResultsStub
268
279
} ,
269
280
"../helpers/capabilityHelper" : {
270
281
validate : capabilityValidatorStub ,
@@ -298,7 +309,7 @@ describe("runs", () => {
298
309
sinon . assert . calledOnce ( archiverStub ) ;
299
310
sinon . assert . calledOnce ( setUsageReportingFlagStub ) ;
300
311
sinon . assert . calledOnce ( zipUploadStub ) ;
301
-
312
+ sinon . assert . calledOnce ( deleteResultsStub ) ;
302
313
sinon . assert . calledOnceWithExactly (
303
314
sendUsageReportStub ,
304
315
bsConfig ,
@@ -334,6 +345,7 @@ describe("runs", () => {
334
345
zipUploadStub = sandbox . stub ( ) ;
335
346
createBuildStub = sandbox . stub ( ) ;
336
347
deleteZipStub = sandbox . stub ( ) ;
348
+ deleteResultsStub = sandbox . stub ( ) ;
337
349
} ) ;
338
350
339
351
afterEach ( ( ) => {
@@ -355,7 +367,8 @@ describe("runs", () => {
355
367
setAccessKey : setAccessKeyStub ,
356
368
setBuildName : setBuildNameStub ,
357
369
setUsageReportingFlag : setUsageReportingFlagStub ,
358
- getConfigPath : getConfigPathStub
370
+ getConfigPath : getConfigPathStub ,
371
+ deleteResults : deleteResultsStub
359
372
} ,
360
373
"../helpers/capabilityHelper" : {
361
374
validate : capabilityValidatorStub ,
@@ -398,6 +411,7 @@ describe("runs", () => {
398
411
sinon . assert . calledOnce ( createBuildStub ) ;
399
412
400
413
sinon . assert . calledOnce ( sendUsageReportStub ) ;
414
+ sinon . assert . calledOnce ( deleteResultsStub ) ;
401
415
402
416
sinon . assert . calledOnceWithExactly (
403
417
sendUsageReportStub ,
@@ -436,6 +450,8 @@ describe("runs", () => {
436
450
zipUploadStub = sandbox . stub ( ) ;
437
451
createBuildStub = sandbox . stub ( ) ;
438
452
deleteZipStub = sandbox . stub ( ) ;
453
+ exportResultsStub = sandbox . stub ( ) ;
454
+ deleteResultsStub = sandbox . stub ( ) ;
439
455
isUndefinedStub = sandbox . stub ( ) ;
440
456
} ) ;
441
457
@@ -460,6 +476,8 @@ describe("runs", () => {
460
476
setUsageReportingFlag : setUsageReportingFlagStub ,
461
477
setParallels : setParallelsStub ,
462
478
getConfigPath : getConfigPathStub ,
479
+ exportResults : exportResultsStub ,
480
+ deleteResults : deleteResultsStub ,
463
481
isUndefined : isUndefinedStub
464
482
} ,
465
483
"../helpers/capabilityHelper" : {
@@ -504,7 +522,8 @@ describe("runs", () => {
504
522
sinon . assert . calledOnce ( setUsageReportingFlagStub ) ;
505
523
sinon . assert . calledOnce ( zipUploadStub ) ;
506
524
sinon . assert . calledOnce ( createBuildStub ) ;
507
-
525
+ sinon . assert . calledOnce ( exportResultsStub ) ;
526
+ sinon . assert . calledOnce ( deleteResultsStub ) ;
508
527
sinon . assert . calledOnceWithExactly (
509
528
sendUsageReportStub ,
510
529
bsConfig ,
0 commit comments