@@ -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 ,
@@ -91,6 +94,7 @@ describe("runs", () => {
91
94
} ) ;
92
95
getErrorCodeFromMsgStub = sandbox . stub ( ) . returns ( "random-error-code" ) ;
93
96
capabilityValidatorStub = sandbox . stub ( ) ;
97
+ deleteResultsStub = sandbox . stub ( ) ;
94
98
} ) ;
95
99
96
100
afterEach ( ( ) => {
@@ -114,7 +118,8 @@ describe("runs", () => {
114
118
setBuildName : setBuildNameStub ,
115
119
setUserSpecs : setUserSpecsStub ,
116
120
setTestEnvs : setTestEnvsStub ,
117
- getConfigPath : getConfigPathStub
121
+ getConfigPath : getConfigPathStub ,
122
+ deleteResults : deleteResultsStub
118
123
} ,
119
124
"../helpers/capabilityHelper" : {
120
125
validate : capabilityValidatorStub ,
@@ -135,6 +140,7 @@ describe("runs", () => {
135
140
sinon . assert . calledOnce ( capabilityValidatorStub ) ;
136
141
sinon . assert . calledOnce ( setUsageReportingFlagStub ) ;
137
142
sinon . assert . calledOnce ( getErrorCodeFromMsgStub ) ;
143
+ sinon . assert . calledOnce ( deleteResultsStub ) ;
138
144
sinon . assert . calledOnceWithExactly (
139
145
sendUsageReportStub ,
140
146
bsConfig ,
@@ -167,6 +173,7 @@ describe("runs", () => {
167
173
capabilityValidatorStub = sandbox . stub ( ) ;
168
174
archiverStub = sandbox . stub ( ) ;
169
175
deleteZipStub = sandbox . stub ( ) ;
176
+ deleteResultsStub = sandbox . stub ( ) ;
170
177
} ) ;
171
178
172
179
afterEach ( ( ) => {
@@ -190,7 +197,8 @@ describe("runs", () => {
190
197
setUserSpecs : setUserSpecsStub ,
191
198
setTestEnvs : setTestEnvsStub ,
192
199
setUsageReportingFlag : setUsageReportingFlagStub ,
193
- getConfigPath : getConfigPathStub
200
+ getConfigPath : getConfigPathStub ,
201
+ deleteResults : deleteResultsStub
194
202
} ,
195
203
"../helpers/capabilityHelper" : {
196
204
validate : capabilityValidatorStub ,
@@ -220,6 +228,7 @@ describe("runs", () => {
220
228
sinon . assert . calledOnce ( archiverStub ) ;
221
229
sinon . assert . calledOnce ( setUsageReportingFlagStub ) ;
222
230
sinon . assert . calledOnce ( deleteZipStub ) ;
231
+ sinon . assert . calledOnce ( deleteResultsStub ) ;
223
232
sinon . assert . calledOnceWithExactly (
224
233
sendUsageReportStub ,
225
234
bsConfig ,
@@ -253,6 +262,7 @@ describe("runs", () => {
253
262
archiverStub = sandbox . stub ( ) ;
254
263
zipUploadStub = sandbox . stub ( ) ;
255
264
deleteZipStub = sandbox . stub ( ) ;
265
+ deleteResultsStub = sandbox . stub ( ) ;
256
266
} ) ;
257
267
258
268
afterEach ( ( ) => {
@@ -276,7 +286,8 @@ describe("runs", () => {
276
286
setUserSpecs : setUserSpecsStub ,
277
287
setTestEnvs : setTestEnvsStub ,
278
288
setUsageReportingFlag : setUsageReportingFlagStub ,
279
- getConfigPath : getConfigPathStub
289
+ getConfigPath : getConfigPathStub ,
290
+ deleteResults : deleteResultsStub
280
291
} ,
281
292
"../helpers/capabilityHelper" : {
282
293
validate : capabilityValidatorStub ,
@@ -310,7 +321,7 @@ describe("runs", () => {
310
321
sinon . assert . calledOnce ( archiverStub ) ;
311
322
sinon . assert . calledOnce ( setUsageReportingFlagStub ) ;
312
323
sinon . assert . calledOnce ( zipUploadStub ) ;
313
-
324
+ sinon . assert . calledOnce ( deleteResultsStub ) ;
314
325
sinon . assert . calledOnceWithExactly (
315
326
sendUsageReportStub ,
316
327
bsConfig ,
@@ -348,6 +359,7 @@ describe("runs", () => {
348
359
zipUploadStub = sandbox . stub ( ) ;
349
360
createBuildStub = sandbox . stub ( ) ;
350
361
deleteZipStub = sandbox . stub ( ) ;
362
+ deleteResultsStub = sandbox . stub ( ) ;
351
363
} ) ;
352
364
353
365
afterEach ( ( ) => {
@@ -371,7 +383,8 @@ describe("runs", () => {
371
383
setUserSpecs : setUserSpecsStub ,
372
384
setTestEnvs : setTestEnvsStub ,
373
385
setUsageReportingFlag : setUsageReportingFlagStub ,
374
- getConfigPath : getConfigPathStub
386
+ getConfigPath : getConfigPathStub ,
387
+ deleteResults : deleteResultsStub
375
388
} ,
376
389
"../helpers/capabilityHelper" : {
377
390
validate : capabilityValidatorStub ,
@@ -414,6 +427,7 @@ describe("runs", () => {
414
427
sinon . assert . calledOnce ( createBuildStub ) ;
415
428
416
429
sinon . assert . calledOnce ( sendUsageReportStub ) ;
430
+ sinon . assert . calledOnce ( deleteResultsStub ) ;
417
431
418
432
sinon . assert . calledOnceWithExactly (
419
433
sendUsageReportStub ,
@@ -454,6 +468,8 @@ describe("runs", () => {
454
468
zipUploadStub = sandbox . stub ( ) ;
455
469
createBuildStub = sandbox . stub ( ) ;
456
470
deleteZipStub = sandbox . stub ( ) ;
471
+ exportResultsStub = sandbox . stub ( ) ;
472
+ deleteResultsStub = sandbox . stub ( ) ;
457
473
isUndefinedStub = sandbox . stub ( ) ;
458
474
} ) ;
459
475
@@ -480,6 +496,8 @@ describe("runs", () => {
480
496
setUsageReportingFlag : setUsageReportingFlagStub ,
481
497
setParallels : setParallelsStub ,
482
498
getConfigPath : getConfigPathStub ,
499
+ exportResults : exportResultsStub ,
500
+ deleteResults : deleteResultsStub ,
483
501
isUndefined : isUndefinedStub
484
502
} ,
485
503
"../helpers/capabilityHelper" : {
@@ -524,7 +542,8 @@ describe("runs", () => {
524
542
sinon . assert . calledOnce ( setUsageReportingFlagStub ) ;
525
543
sinon . assert . calledOnce ( zipUploadStub ) ;
526
544
sinon . assert . calledOnce ( createBuildStub ) ;
527
-
545
+ sinon . assert . calledOnce ( exportResultsStub ) ;
546
+ sinon . assert . calledOnce ( deleteResultsStub ) ;
528
547
sinon . assert . calledOnceWithExactly (
529
548
sendUsageReportStub ,
530
549
bsConfig ,
0 commit comments