@@ -148,7 +148,7 @@ describe('apex:test:run', () => {
148
148
] ) ;
149
149
expect ( buildPayloadSpy . calledOnce ) . to . be . true ;
150
150
expect ( runTestSynchronousSpy . calledOnce ) . to . be . true ;
151
- expect ( buildPayloadSpy . firstCall . args ) . to . deep . equal ( [ 'RunSpecifiedTests' , undefined , 'myApex' , 'Apex ' ] ) ;
151
+ expect ( buildPayloadSpy . firstCall . args ) . to . deep . equal ( [ 'RunSpecifiedTests' , undefined , 'myApex' , '' ] ) ;
152
152
expect ( runTestSynchronousSpy . firstCall . args [ 0 ] ) . to . deep . equal ( {
153
153
skipCodeCoverage : false ,
154
154
testLevel : 'RunSpecifiedTests' ,
@@ -166,31 +166,26 @@ describe('apex:test:run', () => {
166
166
. stub ( TestService . prototype , 'runTestAsynchronous' )
167
167
. resolves ( runWithCoverage ) ;
168
168
await Test . run ( [
169
- '--class-names' ,
170
- 'myApex' ,
171
169
'--code-coverage' ,
172
170
'--result-format' ,
173
171
'human' ,
174
172
'--test-level' ,
175
- 'RunSpecifiedTests ' ,
173
+ 'RunLocalTests ' ,
176
174
] ) ;
177
175
expect ( buildPayloadSpy . calledOnce ) . to . be . true ;
178
176
expect ( runTestSynchronousSpy . calledOnce ) . to . be . true ;
179
177
expect ( buildPayloadSpy . firstCall . args ) . to . deep . equal ( [
180
- 'RunSpecifiedTests' ,
178
+ 'RunLocalTests' ,
179
+ undefined ,
181
180
undefined ,
182
- 'myApex' ,
183
181
undefined ,
184
182
'Apex' ,
185
183
] ) ;
186
184
expect ( runTestSynchronousSpy . firstCall . args [ 0 ] ) . to . deep . equal ( {
185
+ category : [ 'Apex' ] ,
187
186
skipCodeCoverage : false ,
188
- testLevel : 'RunSpecifiedTests' ,
189
- tests : [
190
- {
191
- className : 'myApex' ,
192
- } ,
193
- ] ,
187
+ suiteNames : undefined ,
188
+ testLevel : 'RunLocalTests' ,
194
189
} ) ;
195
190
} ) ;
196
191
@@ -208,7 +203,7 @@ describe('apex:test:run', () => {
208
203
undefined ,
209
204
'myApex' ,
210
205
undefined ,
211
- 'Apex ' ,
206
+ '' ,
212
207
] ) ;
213
208
expect ( runTestSynchronousSpy . firstCall . args [ 0 ] ) . to . deep . equal ( {
214
209
skipCodeCoverage : true ,
@@ -228,7 +223,7 @@ describe('apex:test:run', () => {
228
223
await Test . run ( [ '--class-names' , 'myApex' , '--synchronous' , '--test-level' , 'RunSpecifiedTests' ] ) ;
229
224
expect ( buildPayloadSpy . calledOnce ) . to . be . true ;
230
225
expect ( runTestSynchronousSpy . calledOnce ) . to . be . true ;
231
- expect ( buildPayloadSpy . firstCall . args ) . to . deep . equal ( [ 'RunSpecifiedTests' , undefined , 'myApex' , 'Apex ' ] ) ;
226
+ expect ( buildPayloadSpy . firstCall . args ) . to . deep . equal ( [ 'RunSpecifiedTests' , undefined , 'myApex' , '' ] ) ;
232
227
expect ( runTestSynchronousSpy . firstCall . args [ 0 ] ) . to . deep . equal ( {
233
228
skipCodeCoverage : true ,
234
229
testLevel : 'RunSpecifiedTests' ,
@@ -331,7 +326,6 @@ describe('apex:test:run', () => {
331
326
332
327
await Test . run ( [ '--suite-names' , 'MyApexTests,MySecondTest' , '--result-format' , 'human' ] ) ;
333
328
expect ( apexStub . firstCall . args [ 0 ] ) . to . deep . equal ( {
334
- category : [ 'Apex' ] ,
335
329
skipCodeCoverage : true ,
336
330
testLevel : 'RunSpecifiedTests' ,
337
331
suiteNames : 'MyApexTests,MySecondTest' ,
@@ -343,7 +337,6 @@ describe('apex:test:run', () => {
343
337
344
338
await Test . run ( [ '-s' , 'MyApexTests' , '-s' , 'MySecondTest' , '--result-format' , 'human' ] ) ;
345
339
expect ( apexStub . firstCall . args [ 0 ] ) . to . deep . equal ( {
346
- category : [ 'Apex' ] ,
347
340
skipCodeCoverage : true ,
348
341
testLevel : 'RunSpecifiedTests' ,
349
342
suiteNames : 'MyApexTests,MySecondTest' ,
@@ -416,7 +409,7 @@ describe('apex:test:run', () => {
416
409
] ) ;
417
410
expect ( buildPayloadSpy . calledOnce ) . to . be . true ;
418
411
expect ( runTestSynchronousSpy . calledOnce ) . to . be . true ;
419
- expect ( buildPayloadSpy . firstCall . args ) . to . deep . equal ( [ 'RunSpecifiedTests' , undefined , 'myApex' , 'Apex ' ] ) ;
412
+ expect ( buildPayloadSpy . firstCall . args ) . to . deep . equal ( [ 'RunSpecifiedTests' , undefined , 'myApex' , '' ] ) ;
420
413
expect ( runTestSynchronousSpy . firstCall . args [ 0 ] ) . to . deep . equal ( {
421
414
skipCodeCoverage : false ,
422
415
testLevel : 'RunSpecifiedTests' ,
@@ -434,31 +427,26 @@ describe('apex:test:run', () => {
434
427
. stub ( TestService . prototype , 'runTestAsynchronous' )
435
428
. resolves ( runWithCoverage ) ;
436
429
await Test . run ( [
437
- '--class-names' ,
438
- 'myApex' ,
439
430
'--code-coverage' ,
440
431
'--result-format' ,
441
432
'human' ,
442
433
'--test-level' ,
443
- 'RunSpecifiedTests ' ,
434
+ 'RunLocalTests ' ,
444
435
] ) ;
445
436
expect ( buildPayloadSpy . calledOnce ) . to . be . true ;
446
437
expect ( runTestSynchronousSpy . calledOnce ) . to . be . true ;
447
438
expect ( buildPayloadSpy . firstCall . args ) . to . deep . equal ( [
448
- 'RunSpecifiedTests' ,
439
+ 'RunLocalTests' ,
440
+ undefined ,
449
441
undefined ,
450
- 'myApex' ,
451
442
undefined ,
452
443
'Apex' ,
453
444
] ) ;
454
445
expect ( runTestSynchronousSpy . firstCall . args [ 0 ] ) . to . deep . equal ( {
446
+ category : [ 'Apex' ] ,
455
447
skipCodeCoverage : false ,
456
- testLevel : 'RunSpecifiedTests' ,
457
- tests : [
458
- {
459
- className : 'myApex' ,
460
- } ,
461
- ] ,
448
+ suiteNames : undefined ,
449
+ testLevel : 'RunLocalTests'
462
450
} ) ;
463
451
} ) ;
464
452
@@ -474,7 +462,7 @@ describe('apex:test:run', () => {
474
462
undefined ,
475
463
'myApex' ,
476
464
undefined ,
477
- 'Apex ' ,
465
+ '' ,
478
466
] ) ;
479
467
expect ( runTestSynchronousSpy . firstCall . args [ 0 ] ) . to . deep . equal ( {
480
468
skipCodeCoverage : true ,
@@ -494,7 +482,7 @@ describe('apex:test:run', () => {
494
482
await Test . run ( [ '--class-names' , 'myApex' , '--synchronous' , '--test-level' , 'RunSpecifiedTests' ] ) ;
495
483
expect ( buildPayloadSpy . calledOnce ) . to . be . true ;
496
484
expect ( runTestSynchronousSpy . calledOnce ) . to . be . true ;
497
- expect ( buildPayloadSpy . firstCall . args ) . to . deep . equal ( [ 'RunSpecifiedTests' , undefined , 'myApex' , 'Apex ' ] ) ;
485
+ expect ( buildPayloadSpy . firstCall . args ) . to . deep . equal ( [ 'RunSpecifiedTests' , undefined , 'myApex' , '' ] ) ;
498
486
expect ( runTestSynchronousSpy . firstCall . args [ 0 ] ) . to . deep . equal ( {
499
487
skipCodeCoverage : true ,
500
488
testLevel : 'RunSpecifiedTests' ,
0 commit comments