@salesforce/plugin-apex 3.6.19 → 3.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +55 -6
- package/lib/commands/apex/get/test.js +10 -12
- package/lib/commands/apex/get/test.js.map +1 -1
- package/lib/commands/logic/get/test.d.ts +19 -0
- package/lib/commands/logic/get/test.js +62 -0
- package/lib/commands/logic/get/test.js.map +1 -0
- package/lib/reporters/jsonReporter.d.ts +1 -1
- package/lib/reporters/jsonReporter.js +2 -1
- package/lib/reporters/jsonReporter.js.map +1 -1
- package/lib/reporters/testReporter.d.ts +1 -0
- package/lib/reporters/testReporter.js +11 -11
- package/lib/reporters/testReporter.js.map +1 -1
- package/lib/shared/TestGetBase.d.ts +22 -0
- package/lib/shared/TestGetBase.js +31 -0
- package/lib/shared/TestGetBase.js.map +1 -0
- package/messages/logicgettest.md +39 -0
- package/oclif.manifest.json +501 -342
- package/package.json +15 -7
package/oclif.manifest.json
CHANGED
|
@@ -106,25 +106,18 @@
|
|
|
106
106
|
"run:apex"
|
|
107
107
|
]
|
|
108
108
|
},
|
|
109
|
-
"apex:
|
|
109
|
+
"apex:get:log": {
|
|
110
110
|
"aliases": [
|
|
111
|
-
"force:apex:
|
|
111
|
+
"force:apex:log:get"
|
|
112
112
|
],
|
|
113
113
|
"args": {},
|
|
114
114
|
"deprecateAliases": true,
|
|
115
|
-
"description": "
|
|
115
|
+
"description": "To get the IDs for your debug logs, run \"<%= config.bin %> apex log list\". Executing this command without flags returns the most recent log.",
|
|
116
116
|
"examples": [
|
|
117
|
-
"
|
|
118
|
-
"
|
|
119
|
-
"
|
|
120
|
-
"
|
|
121
|
-
"Run all tests in the org with the specified username with the specified test level; save the output to the specified directory:\n<%= config.bin %> <%= command.id %> --test-level RunLocalTests --output-dir <path to outputdir> --target-org me@my.org",
|
|
122
|
-
"Run all tests in the org asynchronously:\n<%= config.bin %> <%= command.id %> --target-org myscratch",
|
|
123
|
-
"Run all tests synchronously; the command waits to display the test results until all tests finish:\n<%= config.bin %> <%= command.id %> --synchronous",
|
|
124
|
-
"Run specific tests using the --test-level flag:\n<%= config.bin %> <%= command.id %> --test-level RunLocalTests",
|
|
125
|
-
"Run Apex tests on all the methods in the specified class; output results in Test Anything Protocol (TAP) format and request code coverage results:\n<%= config.bin %> <%= command.id %> --class-names TestA --class-names TestB --result-format tap --code-coverage",
|
|
126
|
-
"Run Apex tests on methods specified using the standard Class.method notation; if you specify a test class without a method, the command runs all methods in the class:\n<%= config.bin %> <%= command.id %> --tests TestA.excitingMethod --tests TestA.boringMethod --tests TestB",
|
|
127
|
-
"Run Apex tests on methods specified using the standard Class.method notation with a namespace:\n<%= config.bin %> <%= command.id %> --tests ns.TestA.excitingMethod --tests ns.TestA.boringMethod --tests ns.TestB"
|
|
117
|
+
"Fetch the log in your default org using an ID:\n<%= config.bin %> <%= command.id %> --log-id <log id>",
|
|
118
|
+
"Fetch the log in the org with the specified username using an ID:\n<%= config.bin %> <%= command.id %> --log-id <log id> --target-org me@my.org",
|
|
119
|
+
"Fetch the two most recent logs in your default org:\n<%= config.bin %> <%= command.id %> --number 2",
|
|
120
|
+
"Similar to previous example, but save the two log files in the specified directory:\n<%= config.bin %> <%= command.id %> --output-dir /Users/sfdxUser/logs --number 2"
|
|
128
121
|
],
|
|
129
122
|
"flags": {
|
|
130
123
|
"json": {
|
|
@@ -178,16 +171,25 @@
|
|
|
178
171
|
"multiple": false,
|
|
179
172
|
"type": "option"
|
|
180
173
|
},
|
|
181
|
-
"
|
|
174
|
+
"log-id": {
|
|
182
175
|
"aliases": [
|
|
183
|
-
"
|
|
176
|
+
"logid"
|
|
184
177
|
],
|
|
185
|
-
"char": "
|
|
178
|
+
"char": "i",
|
|
186
179
|
"deprecateAliases": true,
|
|
187
|
-
"name": "
|
|
188
|
-
"summary": "
|
|
189
|
-
"
|
|
190
|
-
"
|
|
180
|
+
"name": "log-id",
|
|
181
|
+
"summary": "ID of the specific log to display.",
|
|
182
|
+
"hasDynamicHelp": false,
|
|
183
|
+
"multiple": false,
|
|
184
|
+
"type": "option"
|
|
185
|
+
},
|
|
186
|
+
"number": {
|
|
187
|
+
"char": "n",
|
|
188
|
+
"name": "number",
|
|
189
|
+
"summary": "Number of the most recent logs to display.",
|
|
190
|
+
"hasDynamicHelp": false,
|
|
191
|
+
"multiple": false,
|
|
192
|
+
"type": "option"
|
|
191
193
|
},
|
|
192
194
|
"output-dir": {
|
|
193
195
|
"aliases": [
|
|
@@ -196,128 +198,196 @@
|
|
|
196
198
|
],
|
|
197
199
|
"char": "d",
|
|
198
200
|
"deprecateAliases": true,
|
|
201
|
+
"description": "The location can be an absolute path or relative to the current working directory. The default is the current directory.",
|
|
199
202
|
"name": "output-dir",
|
|
200
|
-
"summary": "Directory
|
|
203
|
+
"summary": "Directory for saving the log files.",
|
|
201
204
|
"hasDynamicHelp": false,
|
|
202
205
|
"multiple": false,
|
|
203
206
|
"type": "option"
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
"hasDynamicHelp": true,
|
|
210
|
+
"hiddenAliases": [],
|
|
211
|
+
"id": "apex:get:log",
|
|
212
|
+
"pluginAlias": "@salesforce/plugin-apex",
|
|
213
|
+
"pluginName": "@salesforce/plugin-apex",
|
|
214
|
+
"pluginType": "core",
|
|
215
|
+
"strict": true,
|
|
216
|
+
"summary": "Fetch the specified log or given number of most recent logs from the org.",
|
|
217
|
+
"enableJsonFlag": true,
|
|
218
|
+
"isESM": true,
|
|
219
|
+
"relativePath": [
|
|
220
|
+
"lib",
|
|
221
|
+
"commands",
|
|
222
|
+
"apex",
|
|
223
|
+
"get",
|
|
224
|
+
"log.js"
|
|
225
|
+
],
|
|
226
|
+
"aliasPermutations": [
|
|
227
|
+
"force:apex:log:get",
|
|
228
|
+
"apex:force:log:get",
|
|
229
|
+
"apex:log:force:get",
|
|
230
|
+
"apex:log:get:force",
|
|
231
|
+
"force:log:apex:get",
|
|
232
|
+
"log:force:apex:get",
|
|
233
|
+
"log:apex:force:get",
|
|
234
|
+
"log:apex:get:force",
|
|
235
|
+
"force:log:get:apex",
|
|
236
|
+
"log:force:get:apex",
|
|
237
|
+
"log:get:force:apex",
|
|
238
|
+
"log:get:apex:force",
|
|
239
|
+
"force:apex:get:log",
|
|
240
|
+
"apex:force:get:log",
|
|
241
|
+
"apex:get:force:log",
|
|
242
|
+
"apex:get:log:force",
|
|
243
|
+
"force:get:apex:log",
|
|
244
|
+
"get:force:apex:log",
|
|
245
|
+
"get:apex:force:log",
|
|
246
|
+
"get:apex:log:force",
|
|
247
|
+
"force:get:log:apex",
|
|
248
|
+
"get:force:log:apex",
|
|
249
|
+
"get:log:force:apex",
|
|
250
|
+
"get:log:apex:force"
|
|
251
|
+
],
|
|
252
|
+
"permutations": [
|
|
253
|
+
"apex:get:log",
|
|
254
|
+
"get:apex:log",
|
|
255
|
+
"get:log:apex",
|
|
256
|
+
"apex:log:get",
|
|
257
|
+
"log:apex:get",
|
|
258
|
+
"log:get:apex"
|
|
259
|
+
]
|
|
260
|
+
},
|
|
261
|
+
"apex:get:test": {
|
|
262
|
+
"aliases": [
|
|
263
|
+
"force:apex:test:report"
|
|
264
|
+
],
|
|
265
|
+
"args": {},
|
|
266
|
+
"deprecateAliases": true,
|
|
267
|
+
"description": "Provide a test run ID to display test results for an enqueued or completed asynchronous test run. The test run ID is displayed after running the \"<%= config.bin %> apex test run\" command.\n\nTo see code coverage results, use the --code-coverage flag with --result-format. The output displays a high-level summary of the test run and the code coverage values for classes in your org. If you specify human-readable result format, use the --detailed-coverage flag to see detailed coverage results for each test method run.",
|
|
268
|
+
"examples": [
|
|
269
|
+
"Display test results for your default org using a test run ID:\n<%= config.bin %> <%= command.id %> --test-run-id <test run id>",
|
|
270
|
+
"Similar to previous example, but output the result in JUnit format:\n<%= config.bin %> <%= command.id %> --test-run-id <test run id> --result-format junit",
|
|
271
|
+
"Also retrieve code coverage results and output in JSON format:\n<%= config.bin %> <%= command.id %> --test-run-id <test run id> --code-coverage --json",
|
|
272
|
+
"Specify a directory in which to save the test results from the org with the specified username (rather than your default org):\n<%= config.bin %> <%= command.id %> --test-run-id <test run id> --code-coverage --output-dir <path to outputdir> --target-org me@myorg'"
|
|
273
|
+
],
|
|
274
|
+
"flags": {
|
|
275
|
+
"json": {
|
|
276
|
+
"description": "Format output as json.",
|
|
277
|
+
"helpGroup": "GLOBAL",
|
|
278
|
+
"name": "json",
|
|
279
|
+
"allowNo": false,
|
|
280
|
+
"type": "boolean"
|
|
204
281
|
},
|
|
205
|
-
"
|
|
206
|
-
"
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
"char": "l",
|
|
210
|
-
"deprecateAliases": true,
|
|
211
|
-
"description": "Here's what the levels mean:\n\n- RunSpecifiedTests — Only the tests that you specify in the runTests option are run. Code coverage requirements differ from the default coverage requirements when using this test level. The executed tests must cover each class and trigger in the deployment package for a minimum of 75% code coverage. This coverage is computed for each class and triggers individually, and is different than the overall coverage percentage.\n- RunLocalTests — All local tests in your org, including tests that originate from no-namespaced unlocked packages, are run. The tests that originate from installed managed packages and namespaced unlocked packages aren't run. This test level is the default for production deployments that include Apex classes or triggers.\n- RunAllTestsInOrg — All tests are run. The tests include all tests in your org.",
|
|
212
|
-
"name": "test-level",
|
|
213
|
-
"summary": "Level of tests to run; default is RunLocalTests.",
|
|
282
|
+
"flags-dir": {
|
|
283
|
+
"helpGroup": "GLOBAL",
|
|
284
|
+
"name": "flags-dir",
|
|
285
|
+
"summary": "Import flag values from a directory.",
|
|
214
286
|
"hasDynamicHelp": false,
|
|
215
287
|
"multiple": false,
|
|
216
|
-
"options": [
|
|
217
|
-
"RunLocalTests",
|
|
218
|
-
"RunAllTestsInOrg",
|
|
219
|
-
"RunSpecifiedTests"
|
|
220
|
-
],
|
|
221
288
|
"type": "option"
|
|
222
289
|
},
|
|
223
|
-
"
|
|
290
|
+
"target-org": {
|
|
224
291
|
"aliases": [
|
|
225
|
-
"
|
|
292
|
+
"targetusername",
|
|
293
|
+
"u"
|
|
226
294
|
],
|
|
227
|
-
"char": "
|
|
295
|
+
"char": "o",
|
|
228
296
|
"deprecateAliases": true,
|
|
229
|
-
"
|
|
230
|
-
"
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
"
|
|
235
|
-
"summary": "Apex test class names to run; default is all classes.",
|
|
236
|
-
"delimiter": ",",
|
|
237
|
-
"hasDynamicHelp": false,
|
|
238
|
-
"multiple": true,
|
|
297
|
+
"name": "target-org",
|
|
298
|
+
"noCacheDefault": true,
|
|
299
|
+
"required": true,
|
|
300
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
301
|
+
"hasDynamicHelp": true,
|
|
302
|
+
"multiple": false,
|
|
239
303
|
"type": "option"
|
|
240
304
|
},
|
|
241
|
-
"
|
|
305
|
+
"api-version": {
|
|
242
306
|
"aliases": [
|
|
243
|
-
"
|
|
307
|
+
"apiversion"
|
|
244
308
|
],
|
|
245
|
-
"char": "r",
|
|
246
309
|
"deprecateAliases": true,
|
|
247
|
-
"
|
|
248
|
-
"
|
|
249
|
-
"default": "human",
|
|
310
|
+
"description": "Override the api version used for api requests made by this command",
|
|
311
|
+
"name": "api-version",
|
|
250
312
|
"hasDynamicHelp": false,
|
|
251
313
|
"multiple": false,
|
|
252
|
-
"options": [
|
|
253
|
-
"human",
|
|
254
|
-
"tap",
|
|
255
|
-
"junit",
|
|
256
|
-
"json"
|
|
257
|
-
],
|
|
258
314
|
"type": "option"
|
|
259
315
|
},
|
|
260
|
-
"
|
|
261
|
-
"
|
|
262
|
-
"
|
|
263
|
-
|
|
264
|
-
"
|
|
265
|
-
"
|
|
266
|
-
"description": "If you select --suite-names, you can't specify --class-names or --tests.\nFor multiple suites, repeat the flag for each.\n--suite-names Suite1 --suite-names Suite2",
|
|
267
|
-
"exclusive": [
|
|
268
|
-
"class-names",
|
|
269
|
-
"tests"
|
|
270
|
-
],
|
|
271
|
-
"name": "suite-names",
|
|
272
|
-
"summary": "Apex test suite names to run.",
|
|
273
|
-
"delimiter": ",",
|
|
316
|
+
"loglevel": {
|
|
317
|
+
"deprecated": {
|
|
318
|
+
"message": "The loglevel flag is no longer in use on this command. You may use it without error, but it will be ignored.\nSet the log level using the `SFDX_LOG_LEVEL` environment variable."
|
|
319
|
+
},
|
|
320
|
+
"hidden": true,
|
|
321
|
+
"name": "loglevel",
|
|
274
322
|
"hasDynamicHelp": false,
|
|
275
|
-
"multiple":
|
|
323
|
+
"multiple": false,
|
|
276
324
|
"type": "option"
|
|
277
325
|
},
|
|
278
|
-
"
|
|
279
|
-
"
|
|
280
|
-
|
|
281
|
-
"exclusive": [
|
|
282
|
-
"class-names",
|
|
283
|
-
"suite-names"
|
|
326
|
+
"test-run-id": {
|
|
327
|
+
"aliases": [
|
|
328
|
+
"testrunid"
|
|
284
329
|
],
|
|
285
|
-
"
|
|
286
|
-
"
|
|
287
|
-
"
|
|
330
|
+
"char": "i",
|
|
331
|
+
"deprecateAliases": true,
|
|
332
|
+
"name": "test-run-id",
|
|
333
|
+
"required": true,
|
|
334
|
+
"summary": "ID of the test run.",
|
|
288
335
|
"hasDynamicHelp": false,
|
|
289
|
-
"multiple": true,
|
|
290
|
-
"type": "option"
|
|
291
|
-
},
|
|
292
|
-
"wait": {
|
|
293
|
-
"char": "w",
|
|
294
|
-
"name": "wait",
|
|
295
|
-
"summary": "Sets the streaming client socket timeout in minutes; specify a longer wait time if timeouts occur frequently.",
|
|
296
|
-
"hasDynamicHelp": true,
|
|
297
336
|
"multiple": false,
|
|
298
337
|
"type": "option"
|
|
299
338
|
},
|
|
300
|
-
"
|
|
301
|
-
"
|
|
302
|
-
|
|
303
|
-
|
|
339
|
+
"code-coverage": {
|
|
340
|
+
"aliases": [
|
|
341
|
+
"codecoverage"
|
|
342
|
+
],
|
|
343
|
+
"char": "c",
|
|
344
|
+
"deprecateAliases": true,
|
|
345
|
+
"name": "code-coverage",
|
|
346
|
+
"summary": "Retrieve code coverage results.",
|
|
304
347
|
"allowNo": false,
|
|
305
348
|
"type": "boolean"
|
|
306
349
|
},
|
|
307
350
|
"detailed-coverage": {
|
|
308
|
-
"aliases": [
|
|
309
|
-
"detailedcoverage"
|
|
310
|
-
],
|
|
311
|
-
"char": "v",
|
|
312
351
|
"dependsOn": [
|
|
313
352
|
"code-coverage"
|
|
314
353
|
],
|
|
315
|
-
"deprecateAliases": true,
|
|
316
354
|
"name": "detailed-coverage",
|
|
317
355
|
"summary": "Display detailed code coverage per test.",
|
|
318
356
|
"allowNo": false,
|
|
319
357
|
"type": "boolean"
|
|
320
358
|
},
|
|
359
|
+
"output-dir": {
|
|
360
|
+
"aliases": [
|
|
361
|
+
"outputdir",
|
|
362
|
+
"output-directory"
|
|
363
|
+
],
|
|
364
|
+
"char": "d",
|
|
365
|
+
"deprecateAliases": true,
|
|
366
|
+
"name": "output-dir",
|
|
367
|
+
"summary": "Directory in which to store test result files.",
|
|
368
|
+
"hasDynamicHelp": false,
|
|
369
|
+
"multiple": false,
|
|
370
|
+
"type": "option"
|
|
371
|
+
},
|
|
372
|
+
"result-format": {
|
|
373
|
+
"aliases": [
|
|
374
|
+
"resultformat"
|
|
375
|
+
],
|
|
376
|
+
"char": "r",
|
|
377
|
+
"deprecateAliases": true,
|
|
378
|
+
"name": "result-format",
|
|
379
|
+
"summary": "Format of the test results.",
|
|
380
|
+
"default": "human",
|
|
381
|
+
"hasDynamicHelp": false,
|
|
382
|
+
"multiple": false,
|
|
383
|
+
"options": [
|
|
384
|
+
"human",
|
|
385
|
+
"tap",
|
|
386
|
+
"junit",
|
|
387
|
+
"json"
|
|
388
|
+
],
|
|
389
|
+
"type": "option"
|
|
390
|
+
},
|
|
321
391
|
"concise": {
|
|
322
392
|
"name": "concise",
|
|
323
393
|
"summary": "Display only failed test results; works with human-readable output only.",
|
|
@@ -327,54 +397,54 @@
|
|
|
327
397
|
},
|
|
328
398
|
"hasDynamicHelp": true,
|
|
329
399
|
"hiddenAliases": [],
|
|
330
|
-
"id": "apex:
|
|
400
|
+
"id": "apex:get:test",
|
|
331
401
|
"pluginAlias": "@salesforce/plugin-apex",
|
|
332
402
|
"pluginName": "@salesforce/plugin-apex",
|
|
333
403
|
"pluginType": "core",
|
|
334
404
|
"strict": true,
|
|
335
|
-
"summary": "
|
|
405
|
+
"summary": "Display test results for a specific asynchronous test run.",
|
|
336
406
|
"enableJsonFlag": true,
|
|
337
407
|
"isESM": true,
|
|
338
408
|
"relativePath": [
|
|
339
409
|
"lib",
|
|
340
410
|
"commands",
|
|
341
411
|
"apex",
|
|
342
|
-
"
|
|
412
|
+
"get",
|
|
343
413
|
"test.js"
|
|
344
414
|
],
|
|
345
415
|
"aliasPermutations": [
|
|
346
|
-
"force:apex:test:
|
|
347
|
-
"apex:force:test:
|
|
348
|
-
"apex:test:force:
|
|
349
|
-
"apex:test:
|
|
350
|
-
"force:test:apex:
|
|
351
|
-
"test:force:apex:
|
|
352
|
-
"test:apex:force:
|
|
353
|
-
"test:apex:
|
|
354
|
-
"force:test:
|
|
355
|
-
"test:force:
|
|
356
|
-
"test:
|
|
357
|
-
"test:
|
|
358
|
-
"force:apex:
|
|
359
|
-
"apex:force:
|
|
360
|
-
"apex:
|
|
361
|
-
"apex:
|
|
362
|
-
"force:
|
|
363
|
-
"
|
|
364
|
-
"
|
|
365
|
-
"
|
|
366
|
-
"force:
|
|
367
|
-
"
|
|
368
|
-
"
|
|
369
|
-
"
|
|
416
|
+
"force:apex:test:report",
|
|
417
|
+
"apex:force:test:report",
|
|
418
|
+
"apex:test:force:report",
|
|
419
|
+
"apex:test:report:force",
|
|
420
|
+
"force:test:apex:report",
|
|
421
|
+
"test:force:apex:report",
|
|
422
|
+
"test:apex:force:report",
|
|
423
|
+
"test:apex:report:force",
|
|
424
|
+
"force:test:report:apex",
|
|
425
|
+
"test:force:report:apex",
|
|
426
|
+
"test:report:force:apex",
|
|
427
|
+
"test:report:apex:force",
|
|
428
|
+
"force:apex:report:test",
|
|
429
|
+
"apex:force:report:test",
|
|
430
|
+
"apex:report:force:test",
|
|
431
|
+
"apex:report:test:force",
|
|
432
|
+
"force:report:apex:test",
|
|
433
|
+
"report:force:apex:test",
|
|
434
|
+
"report:apex:force:test",
|
|
435
|
+
"report:apex:test:force",
|
|
436
|
+
"force:report:test:apex",
|
|
437
|
+
"report:force:test:apex",
|
|
438
|
+
"report:test:force:apex",
|
|
439
|
+
"report:test:apex:force"
|
|
370
440
|
],
|
|
371
441
|
"permutations": [
|
|
372
|
-
"apex:
|
|
373
|
-
"
|
|
374
|
-
"
|
|
375
|
-
"apex:test:
|
|
376
|
-
"test:apex:
|
|
377
|
-
"test:
|
|
442
|
+
"apex:get:test",
|
|
443
|
+
"get:apex:test",
|
|
444
|
+
"get:test:apex",
|
|
445
|
+
"apex:test:get",
|
|
446
|
+
"test:apex:get",
|
|
447
|
+
"test:get:apex"
|
|
378
448
|
]
|
|
379
449
|
},
|
|
380
450
|
"apex:list:log": {
|
|
@@ -493,18 +563,25 @@
|
|
|
493
563
|
"log:list:apex"
|
|
494
564
|
]
|
|
495
565
|
},
|
|
496
|
-
"apex:
|
|
566
|
+
"apex:run:test": {
|
|
497
567
|
"aliases": [
|
|
498
|
-
"force:apex:
|
|
568
|
+
"force:apex:test:run"
|
|
499
569
|
],
|
|
500
570
|
"args": {},
|
|
501
571
|
"deprecateAliases": true,
|
|
502
|
-
"description": "
|
|
572
|
+
"description": "Specify which tests to run by using the --class-names, --suite-names, or --tests flags. Alternatively, use the --test-level flag to run all the tests in your org, local tests, or specified tests.\n\nTo see code coverage results, use the --code-coverage flag with --result-format. The output displays a high-level summary of the test run and the code coverage values for classes in your org. If you specify human-readable result format, use the --detailed-coverage flag to see detailed coverage results for each test method run.\n\nBy default, Apex tests run asynchronously and immediately return a test run ID. You can use the --wait flag to specify the number of minutes to wait; if the tests finish in that timeframe, the command displays the results. If the tests haven't finished by the end of the wait time, the command displays a test run ID. Use the \"<%= config.bin %> apex get test --test-run-id\" command to get the results.\n\nYou must have the \"View All Data\" system permission to use this command. The permission is disabled by default and can be enabled only by a system administrator.\n\nNOTE: The testRunCoverage value (JSON and JUnit result formats) is a percentage of the covered lines and total lines from all the Apex classes evaluated by the tests in this run.",
|
|
503
573
|
"examples": [
|
|
504
|
-
"
|
|
505
|
-
"
|
|
506
|
-
"
|
|
507
|
-
"
|
|
574
|
+
"Run all Apex tests and suites in your default org:\n<%= config.bin %> <%= command.id %>",
|
|
575
|
+
"Run the specified Apex test classes in your default org and display results in human-readable form:\n<%= config.bin %> <%= command.id %> --class-names MyClassTest --class-names MyOtherClassTest --result-format human",
|
|
576
|
+
"Run the specified Apex test suites in your default org and include code coverage results and additional details:\n<%= config.bin %> <%= command.id %> --suite-names MySuite --suite-names MyOtherSuite --code-coverage --detailed-coverage",
|
|
577
|
+
"Run the specified Apex tests in your default org and display results in human-readable output:\n<%= config.bin %> <%= command.id %> --tests MyClassTest.testCoolFeature --tests MyClassTest.testAwesomeFeature --tests AnotherClassTest --tests namespace.TheirClassTest.testThis --result-format human",
|
|
578
|
+
"Run all tests in the org with the specified username with the specified test level; save the output to the specified directory:\n<%= config.bin %> <%= command.id %> --test-level RunLocalTests --output-dir <path to outputdir> --target-org me@my.org",
|
|
579
|
+
"Run all tests in the org asynchronously:\n<%= config.bin %> <%= command.id %> --target-org myscratch",
|
|
580
|
+
"Run all tests synchronously; the command waits to display the test results until all tests finish:\n<%= config.bin %> <%= command.id %> --synchronous",
|
|
581
|
+
"Run specific tests using the --test-level flag:\n<%= config.bin %> <%= command.id %> --test-level RunLocalTests",
|
|
582
|
+
"Run Apex tests on all the methods in the specified class; output results in Test Anything Protocol (TAP) format and request code coverage results:\n<%= config.bin %> <%= command.id %> --class-names TestA --class-names TestB --result-format tap --code-coverage",
|
|
583
|
+
"Run Apex tests on methods specified using the standard Class.method notation; if you specify a test class without a method, the command runs all methods in the class:\n<%= config.bin %> <%= command.id %> --tests TestA.excitingMethod --tests TestA.boringMethod --tests TestB",
|
|
584
|
+
"Run Apex tests on methods specified using the standard Class.method notation with a namespace:\n<%= config.bin %> <%= command.id %> --tests ns.TestA.excitingMethod --tests ns.TestA.boringMethod --tests ns.TestB"
|
|
508
585
|
],
|
|
509
586
|
"flags": {
|
|
510
587
|
"json": {
|
|
@@ -558,25 +635,16 @@
|
|
|
558
635
|
"multiple": false,
|
|
559
636
|
"type": "option"
|
|
560
637
|
},
|
|
561
|
-
"
|
|
638
|
+
"code-coverage": {
|
|
562
639
|
"aliases": [
|
|
563
|
-
"
|
|
640
|
+
"codecoverage"
|
|
564
641
|
],
|
|
565
|
-
"char": "
|
|
642
|
+
"char": "c",
|
|
566
643
|
"deprecateAliases": true,
|
|
567
|
-
"name": "
|
|
568
|
-
"summary": "
|
|
569
|
-
"
|
|
570
|
-
"
|
|
571
|
-
"type": "option"
|
|
572
|
-
},
|
|
573
|
-
"number": {
|
|
574
|
-
"char": "n",
|
|
575
|
-
"name": "number",
|
|
576
|
-
"summary": "Number of the most recent logs to display.",
|
|
577
|
-
"hasDynamicHelp": false,
|
|
578
|
-
"multiple": false,
|
|
579
|
-
"type": "option"
|
|
644
|
+
"name": "code-coverage",
|
|
645
|
+
"summary": "Retrieve code coverage results.",
|
|
646
|
+
"allowNo": false,
|
|
647
|
+
"type": "boolean"
|
|
580
648
|
},
|
|
581
649
|
"output-dir": {
|
|
582
650
|
"aliases": [
|
|
@@ -585,196 +653,128 @@
|
|
|
585
653
|
],
|
|
586
654
|
"char": "d",
|
|
587
655
|
"deprecateAliases": true,
|
|
588
|
-
"description": "The location can be an absolute path or relative to the current working directory. The default is the current directory.",
|
|
589
656
|
"name": "output-dir",
|
|
590
|
-
"summary": "Directory
|
|
591
|
-
"hasDynamicHelp": false,
|
|
592
|
-
"multiple": false,
|
|
593
|
-
"type": "option"
|
|
594
|
-
}
|
|
595
|
-
},
|
|
596
|
-
"hasDynamicHelp": true,
|
|
597
|
-
"hiddenAliases": [],
|
|
598
|
-
"id": "apex:get:log",
|
|
599
|
-
"pluginAlias": "@salesforce/plugin-apex",
|
|
600
|
-
"pluginName": "@salesforce/plugin-apex",
|
|
601
|
-
"pluginType": "core",
|
|
602
|
-
"strict": true,
|
|
603
|
-
"summary": "Fetch the specified log or given number of most recent logs from the org.",
|
|
604
|
-
"enableJsonFlag": true,
|
|
605
|
-
"isESM": true,
|
|
606
|
-
"relativePath": [
|
|
607
|
-
"lib",
|
|
608
|
-
"commands",
|
|
609
|
-
"apex",
|
|
610
|
-
"get",
|
|
611
|
-
"log.js"
|
|
612
|
-
],
|
|
613
|
-
"aliasPermutations": [
|
|
614
|
-
"force:apex:log:get",
|
|
615
|
-
"apex:force:log:get",
|
|
616
|
-
"apex:log:force:get",
|
|
617
|
-
"apex:log:get:force",
|
|
618
|
-
"force:log:apex:get",
|
|
619
|
-
"log:force:apex:get",
|
|
620
|
-
"log:apex:force:get",
|
|
621
|
-
"log:apex:get:force",
|
|
622
|
-
"force:log:get:apex",
|
|
623
|
-
"log:force:get:apex",
|
|
624
|
-
"log:get:force:apex",
|
|
625
|
-
"log:get:apex:force",
|
|
626
|
-
"force:apex:get:log",
|
|
627
|
-
"apex:force:get:log",
|
|
628
|
-
"apex:get:force:log",
|
|
629
|
-
"apex:get:log:force",
|
|
630
|
-
"force:get:apex:log",
|
|
631
|
-
"get:force:apex:log",
|
|
632
|
-
"get:apex:force:log",
|
|
633
|
-
"get:apex:log:force",
|
|
634
|
-
"force:get:log:apex",
|
|
635
|
-
"get:force:log:apex",
|
|
636
|
-
"get:log:force:apex",
|
|
637
|
-
"get:log:apex:force"
|
|
638
|
-
],
|
|
639
|
-
"permutations": [
|
|
640
|
-
"apex:get:log",
|
|
641
|
-
"get:apex:log",
|
|
642
|
-
"get:log:apex",
|
|
643
|
-
"apex:log:get",
|
|
644
|
-
"log:apex:get",
|
|
645
|
-
"log:get:apex"
|
|
646
|
-
]
|
|
647
|
-
},
|
|
648
|
-
"apex:get:test": {
|
|
649
|
-
"aliases": [
|
|
650
|
-
"force:apex:test:report"
|
|
651
|
-
],
|
|
652
|
-
"args": {},
|
|
653
|
-
"deprecateAliases": true,
|
|
654
|
-
"description": "Provide a test run ID to display test results for an enqueued or completed asynchronous test run. The test run ID is displayed after running the \"<%= config.bin %> apex test run\" command.\n\nTo see code coverage results, use the --code-coverage flag with --result-format. The output displays a high-level summary of the test run and the code coverage values for classes in your org. If you specify human-readable result format, use the --detailed-coverage flag to see detailed coverage results for each test method run.",
|
|
655
|
-
"examples": [
|
|
656
|
-
"Display test results for your default org using a test run ID:\n<%= config.bin %> <%= command.id %> --test-run-id <test run id>",
|
|
657
|
-
"Similar to previous example, but output the result in JUnit format:\n<%= config.bin %> <%= command.id %> --test-run-id <test run id> --result-format junit",
|
|
658
|
-
"Also retrieve code coverage results and output in JSON format:\n<%= config.bin %> <%= command.id %> --test-run-id <test run id> --code-coverage --json",
|
|
659
|
-
"Specify a directory in which to save the test results from the org with the specified username (rather than your default org):\n<%= config.bin %> <%= command.id %> --test-run-id <test run id> --code-coverage --output-dir <path to outputdir> --target-org me@myorg'"
|
|
660
|
-
],
|
|
661
|
-
"flags": {
|
|
662
|
-
"json": {
|
|
663
|
-
"description": "Format output as json.",
|
|
664
|
-
"helpGroup": "GLOBAL",
|
|
665
|
-
"name": "json",
|
|
666
|
-
"allowNo": false,
|
|
667
|
-
"type": "boolean"
|
|
668
|
-
},
|
|
669
|
-
"flags-dir": {
|
|
670
|
-
"helpGroup": "GLOBAL",
|
|
671
|
-
"name": "flags-dir",
|
|
672
|
-
"summary": "Import flag values from a directory.",
|
|
657
|
+
"summary": "Directory in which to store test run files.",
|
|
673
658
|
"hasDynamicHelp": false,
|
|
674
659
|
"multiple": false,
|
|
675
660
|
"type": "option"
|
|
676
661
|
},
|
|
677
|
-
"
|
|
662
|
+
"test-level": {
|
|
678
663
|
"aliases": [
|
|
679
|
-
"
|
|
680
|
-
"u"
|
|
664
|
+
"testlevel"
|
|
681
665
|
],
|
|
682
|
-
"char": "
|
|
666
|
+
"char": "l",
|
|
683
667
|
"deprecateAliases": true,
|
|
684
|
-
"
|
|
685
|
-
"
|
|
686
|
-
"
|
|
687
|
-
"
|
|
688
|
-
"hasDynamicHelp": true,
|
|
668
|
+
"description": "Here's what the levels mean:\n\n- RunSpecifiedTests — Only the tests that you specify in the runTests option are run. Code coverage requirements differ from the default coverage requirements when using this test level. The executed tests must cover each class and trigger in the deployment package for a minimum of 75% code coverage. This coverage is computed for each class and triggers individually, and is different than the overall coverage percentage.\n- RunLocalTests — All local tests in your org, including tests that originate from no-namespaced unlocked packages, are run. The tests that originate from installed managed packages and namespaced unlocked packages aren't run. This test level is the default for production deployments that include Apex classes or triggers.\n- RunAllTestsInOrg — All tests are run. The tests include all tests in your org.",
|
|
669
|
+
"name": "test-level",
|
|
670
|
+
"summary": "Level of tests to run; default is RunLocalTests.",
|
|
671
|
+
"hasDynamicHelp": false,
|
|
689
672
|
"multiple": false,
|
|
673
|
+
"options": [
|
|
674
|
+
"RunLocalTests",
|
|
675
|
+
"RunAllTestsInOrg",
|
|
676
|
+
"RunSpecifiedTests"
|
|
677
|
+
],
|
|
690
678
|
"type": "option"
|
|
691
679
|
},
|
|
692
|
-
"
|
|
680
|
+
"class-names": {
|
|
693
681
|
"aliases": [
|
|
694
|
-
"
|
|
682
|
+
"classnames"
|
|
695
683
|
],
|
|
684
|
+
"char": "n",
|
|
696
685
|
"deprecateAliases": true,
|
|
697
|
-
"description": "
|
|
698
|
-
"
|
|
686
|
+
"description": "If you select --class-names, you can't specify --suite-names or --tests.\nFor multiple classes, repeat the flag for each.\n--class-names Class1 --class-names Class2",
|
|
687
|
+
"exclusive": [
|
|
688
|
+
"suite-names",
|
|
689
|
+
"tests"
|
|
690
|
+
],
|
|
691
|
+
"name": "class-names",
|
|
692
|
+
"summary": "Apex test class names to run; default is all classes.",
|
|
693
|
+
"delimiter": ",",
|
|
699
694
|
"hasDynamicHelp": false,
|
|
700
|
-
"multiple":
|
|
695
|
+
"multiple": true,
|
|
701
696
|
"type": "option"
|
|
702
697
|
},
|
|
703
|
-
"
|
|
704
|
-
"
|
|
705
|
-
"
|
|
706
|
-
|
|
707
|
-
"
|
|
708
|
-
"
|
|
698
|
+
"result-format": {
|
|
699
|
+
"aliases": [
|
|
700
|
+
"resultformat"
|
|
701
|
+
],
|
|
702
|
+
"char": "r",
|
|
703
|
+
"deprecateAliases": true,
|
|
704
|
+
"name": "result-format",
|
|
705
|
+
"summary": "Format of the test results.",
|
|
706
|
+
"default": "human",
|
|
709
707
|
"hasDynamicHelp": false,
|
|
710
708
|
"multiple": false,
|
|
709
|
+
"options": [
|
|
710
|
+
"human",
|
|
711
|
+
"tap",
|
|
712
|
+
"junit",
|
|
713
|
+
"json"
|
|
714
|
+
],
|
|
711
715
|
"type": "option"
|
|
712
716
|
},
|
|
713
|
-
"
|
|
717
|
+
"suite-names": {
|
|
714
718
|
"aliases": [
|
|
715
|
-
"
|
|
719
|
+
"suitenames"
|
|
716
720
|
],
|
|
717
|
-
"char": "
|
|
721
|
+
"char": "s",
|
|
718
722
|
"deprecateAliases": true,
|
|
719
|
-
"
|
|
720
|
-
"
|
|
721
|
-
|
|
723
|
+
"description": "If you select --suite-names, you can't specify --class-names or --tests.\nFor multiple suites, repeat the flag for each.\n--suite-names Suite1 --suite-names Suite2",
|
|
724
|
+
"exclusive": [
|
|
725
|
+
"class-names",
|
|
726
|
+
"tests"
|
|
727
|
+
],
|
|
728
|
+
"name": "suite-names",
|
|
729
|
+
"summary": "Apex test suite names to run.",
|
|
730
|
+
"delimiter": ",",
|
|
722
731
|
"hasDynamicHelp": false,
|
|
723
|
-
"multiple":
|
|
732
|
+
"multiple": true,
|
|
724
733
|
"type": "option"
|
|
725
734
|
},
|
|
726
|
-
"
|
|
727
|
-
"
|
|
728
|
-
|
|
735
|
+
"tests": {
|
|
736
|
+
"char": "t",
|
|
737
|
+
"description": "If you specify --tests, you can't specify --class-names or --suite-names\nFor multiple tests, repeat the flag for each.\n--tests Test1 --tests Test2",
|
|
738
|
+
"exclusive": [
|
|
739
|
+
"class-names",
|
|
740
|
+
"suite-names"
|
|
729
741
|
],
|
|
730
|
-
"
|
|
731
|
-
"
|
|
732
|
-
"
|
|
733
|
-
"
|
|
742
|
+
"name": "tests",
|
|
743
|
+
"summary": "Apex test class names or IDs and, if applicable, test methods to run; default is all tests.",
|
|
744
|
+
"delimiter": ",",
|
|
745
|
+
"hasDynamicHelp": false,
|
|
746
|
+
"multiple": true,
|
|
747
|
+
"type": "option"
|
|
748
|
+
},
|
|
749
|
+
"wait": {
|
|
750
|
+
"char": "w",
|
|
751
|
+
"name": "wait",
|
|
752
|
+
"summary": "Sets the streaming client socket timeout in minutes; specify a longer wait time if timeouts occur frequently.",
|
|
753
|
+
"hasDynamicHelp": true,
|
|
754
|
+
"multiple": false,
|
|
755
|
+
"type": "option"
|
|
756
|
+
},
|
|
757
|
+
"synchronous": {
|
|
758
|
+
"char": "y",
|
|
759
|
+
"name": "synchronous",
|
|
760
|
+
"summary": "Runs test methods from a single Apex class synchronously; if not specified, tests are run asynchronously.",
|
|
734
761
|
"allowNo": false,
|
|
735
762
|
"type": "boolean"
|
|
736
763
|
},
|
|
737
764
|
"detailed-coverage": {
|
|
765
|
+
"aliases": [
|
|
766
|
+
"detailedcoverage"
|
|
767
|
+
],
|
|
768
|
+
"char": "v",
|
|
738
769
|
"dependsOn": [
|
|
739
770
|
"code-coverage"
|
|
740
771
|
],
|
|
772
|
+
"deprecateAliases": true,
|
|
741
773
|
"name": "detailed-coverage",
|
|
742
774
|
"summary": "Display detailed code coverage per test.",
|
|
743
775
|
"allowNo": false,
|
|
744
776
|
"type": "boolean"
|
|
745
777
|
},
|
|
746
|
-
"output-dir": {
|
|
747
|
-
"aliases": [
|
|
748
|
-
"outputdir",
|
|
749
|
-
"output-directory"
|
|
750
|
-
],
|
|
751
|
-
"char": "d",
|
|
752
|
-
"deprecateAliases": true,
|
|
753
|
-
"name": "output-dir",
|
|
754
|
-
"summary": "Directory in which to store test result files.",
|
|
755
|
-
"hasDynamicHelp": false,
|
|
756
|
-
"multiple": false,
|
|
757
|
-
"type": "option"
|
|
758
|
-
},
|
|
759
|
-
"result-format": {
|
|
760
|
-
"aliases": [
|
|
761
|
-
"resultformat"
|
|
762
|
-
],
|
|
763
|
-
"char": "r",
|
|
764
|
-
"deprecateAliases": true,
|
|
765
|
-
"name": "result-format",
|
|
766
|
-
"summary": "Format of the test results.",
|
|
767
|
-
"default": "human",
|
|
768
|
-
"hasDynamicHelp": false,
|
|
769
|
-
"multiple": false,
|
|
770
|
-
"options": [
|
|
771
|
-
"human",
|
|
772
|
-
"tap",
|
|
773
|
-
"junit",
|
|
774
|
-
"json"
|
|
775
|
-
],
|
|
776
|
-
"type": "option"
|
|
777
|
-
},
|
|
778
778
|
"concise": {
|
|
779
779
|
"name": "concise",
|
|
780
780
|
"summary": "Display only failed test results; works with human-readable output only.",
|
|
@@ -784,54 +784,54 @@
|
|
|
784
784
|
},
|
|
785
785
|
"hasDynamicHelp": true,
|
|
786
786
|
"hiddenAliases": [],
|
|
787
|
-
"id": "apex:
|
|
787
|
+
"id": "apex:run:test",
|
|
788
788
|
"pluginAlias": "@salesforce/plugin-apex",
|
|
789
789
|
"pluginName": "@salesforce/plugin-apex",
|
|
790
790
|
"pluginType": "core",
|
|
791
791
|
"strict": true,
|
|
792
|
-
"summary": "
|
|
792
|
+
"summary": "Invoke Apex tests in an org.",
|
|
793
793
|
"enableJsonFlag": true,
|
|
794
794
|
"isESM": true,
|
|
795
795
|
"relativePath": [
|
|
796
796
|
"lib",
|
|
797
797
|
"commands",
|
|
798
798
|
"apex",
|
|
799
|
-
"
|
|
799
|
+
"run",
|
|
800
800
|
"test.js"
|
|
801
801
|
],
|
|
802
802
|
"aliasPermutations": [
|
|
803
|
-
"force:apex:test:
|
|
804
|
-
"apex:force:test:
|
|
805
|
-
"apex:test:force:
|
|
806
|
-
"apex:test:
|
|
807
|
-
"force:test:apex:
|
|
808
|
-
"test:force:apex:
|
|
809
|
-
"test:apex:force:
|
|
810
|
-
"test:apex:
|
|
811
|
-
"force:test:
|
|
812
|
-
"test:force:
|
|
813
|
-
"test:
|
|
814
|
-
"test:
|
|
815
|
-
"force:apex:
|
|
816
|
-
"apex:force:
|
|
817
|
-
"apex:
|
|
818
|
-
"apex:
|
|
819
|
-
"force:
|
|
820
|
-
"
|
|
821
|
-
"
|
|
822
|
-
"
|
|
823
|
-
"force:
|
|
824
|
-
"
|
|
825
|
-
"
|
|
826
|
-
"
|
|
803
|
+
"force:apex:test:run",
|
|
804
|
+
"apex:force:test:run",
|
|
805
|
+
"apex:test:force:run",
|
|
806
|
+
"apex:test:run:force",
|
|
807
|
+
"force:test:apex:run",
|
|
808
|
+
"test:force:apex:run",
|
|
809
|
+
"test:apex:force:run",
|
|
810
|
+
"test:apex:run:force",
|
|
811
|
+
"force:test:run:apex",
|
|
812
|
+
"test:force:run:apex",
|
|
813
|
+
"test:run:force:apex",
|
|
814
|
+
"test:run:apex:force",
|
|
815
|
+
"force:apex:run:test",
|
|
816
|
+
"apex:force:run:test",
|
|
817
|
+
"apex:run:force:test",
|
|
818
|
+
"apex:run:test:force",
|
|
819
|
+
"force:run:apex:test",
|
|
820
|
+
"run:force:apex:test",
|
|
821
|
+
"run:apex:force:test",
|
|
822
|
+
"run:apex:test:force",
|
|
823
|
+
"force:run:test:apex",
|
|
824
|
+
"run:force:test:apex",
|
|
825
|
+
"run:test:force:apex",
|
|
826
|
+
"run:test:apex:force"
|
|
827
827
|
],
|
|
828
828
|
"permutations": [
|
|
829
|
-
"apex:
|
|
830
|
-
"
|
|
831
|
-
"
|
|
832
|
-
"apex:test:
|
|
833
|
-
"test:apex:
|
|
834
|
-
"test:
|
|
829
|
+
"apex:run:test",
|
|
830
|
+
"run:apex:test",
|
|
831
|
+
"run:test:apex",
|
|
832
|
+
"apex:test:run",
|
|
833
|
+
"test:apex:run",
|
|
834
|
+
"test:run:apex"
|
|
835
835
|
]
|
|
836
836
|
},
|
|
837
837
|
"apex:tail:log": {
|
|
@@ -976,7 +976,166 @@
|
|
|
976
976
|
"log:apex:tail",
|
|
977
977
|
"log:tail:apex"
|
|
978
978
|
]
|
|
979
|
+
},
|
|
980
|
+
"logic:get:test": {
|
|
981
|
+
"aliases": [],
|
|
982
|
+
"args": {},
|
|
983
|
+
"description": "When you run 'sf logic run test' to test Apex classes and Flows asynchronously, it returns a test run ID. Use that ID with this command to see the results.\n\nTo see code coverage results, use the --code-coverage flag with --result-format. The output displays a high-level summary of the test run and the code coverage values for classes in your org. If you specify human-readable result format, use the --detailed-coverage flag to see detailed coverage results for each test method run.",
|
|
984
|
+
"examples": [
|
|
985
|
+
"Get the results for a specific test run ID in the default human-readable format; uses your default org:\n<%= config.bin %> <%= command.id %> --test-run-id <test run id>",
|
|
986
|
+
"Get the results for a specific test run ID, format them as JUnit, and save them to the \"test-results/junit\" directory; uses the org with alias \"my-scratch\":\n<%= config.bin %> <%= command.id %> --test-run-id <test run id> --result-format junit --target-org my-scratch"
|
|
987
|
+
],
|
|
988
|
+
"flags": {
|
|
989
|
+
"json": {
|
|
990
|
+
"description": "Format output as json.",
|
|
991
|
+
"helpGroup": "GLOBAL",
|
|
992
|
+
"name": "json",
|
|
993
|
+
"allowNo": false,
|
|
994
|
+
"type": "boolean"
|
|
995
|
+
},
|
|
996
|
+
"flags-dir": {
|
|
997
|
+
"helpGroup": "GLOBAL",
|
|
998
|
+
"name": "flags-dir",
|
|
999
|
+
"summary": "Import flag values from a directory.",
|
|
1000
|
+
"hasDynamicHelp": false,
|
|
1001
|
+
"multiple": false,
|
|
1002
|
+
"type": "option"
|
|
1003
|
+
},
|
|
1004
|
+
"target-org": {
|
|
1005
|
+
"aliases": [
|
|
1006
|
+
"targetusername",
|
|
1007
|
+
"u"
|
|
1008
|
+
],
|
|
1009
|
+
"char": "o",
|
|
1010
|
+
"deprecateAliases": true,
|
|
1011
|
+
"name": "target-org",
|
|
1012
|
+
"noCacheDefault": true,
|
|
1013
|
+
"required": true,
|
|
1014
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
1015
|
+
"hasDynamicHelp": true,
|
|
1016
|
+
"multiple": false,
|
|
1017
|
+
"type": "option"
|
|
1018
|
+
},
|
|
1019
|
+
"api-version": {
|
|
1020
|
+
"aliases": [
|
|
1021
|
+
"apiversion"
|
|
1022
|
+
],
|
|
1023
|
+
"deprecateAliases": true,
|
|
1024
|
+
"description": "Override the api version used for api requests made by this command",
|
|
1025
|
+
"name": "api-version",
|
|
1026
|
+
"hasDynamicHelp": false,
|
|
1027
|
+
"multiple": false,
|
|
1028
|
+
"type": "option"
|
|
1029
|
+
},
|
|
1030
|
+
"loglevel": {
|
|
1031
|
+
"deprecated": {
|
|
1032
|
+
"message": "The loglevel flag is no longer in use on this command. You may use it without error, but it will be ignored.\nSet the log level using the `SFDX_LOG_LEVEL` environment variable."
|
|
1033
|
+
},
|
|
1034
|
+
"hidden": true,
|
|
1035
|
+
"name": "loglevel",
|
|
1036
|
+
"hasDynamicHelp": false,
|
|
1037
|
+
"multiple": false,
|
|
1038
|
+
"type": "option"
|
|
1039
|
+
},
|
|
1040
|
+
"test-run-id": {
|
|
1041
|
+
"aliases": [
|
|
1042
|
+
"testrunid"
|
|
1043
|
+
],
|
|
1044
|
+
"char": "i",
|
|
1045
|
+
"deprecateAliases": true,
|
|
1046
|
+
"name": "test-run-id",
|
|
1047
|
+
"required": true,
|
|
1048
|
+
"summary": "ID of the test run.",
|
|
1049
|
+
"hasDynamicHelp": false,
|
|
1050
|
+
"multiple": false,
|
|
1051
|
+
"type": "option"
|
|
1052
|
+
},
|
|
1053
|
+
"code-coverage": {
|
|
1054
|
+
"aliases": [
|
|
1055
|
+
"codecoverage"
|
|
1056
|
+
],
|
|
1057
|
+
"char": "c",
|
|
1058
|
+
"deprecateAliases": true,
|
|
1059
|
+
"name": "code-coverage",
|
|
1060
|
+
"summary": "Retrieve code coverage results.",
|
|
1061
|
+
"allowNo": false,
|
|
1062
|
+
"type": "boolean"
|
|
1063
|
+
},
|
|
1064
|
+
"detailed-coverage": {
|
|
1065
|
+
"dependsOn": [
|
|
1066
|
+
"code-coverage"
|
|
1067
|
+
],
|
|
1068
|
+
"name": "detailed-coverage",
|
|
1069
|
+
"summary": "Display detailed code coverage per test.",
|
|
1070
|
+
"allowNo": false,
|
|
1071
|
+
"type": "boolean"
|
|
1072
|
+
},
|
|
1073
|
+
"output-dir": {
|
|
1074
|
+
"aliases": [
|
|
1075
|
+
"outputdir",
|
|
1076
|
+
"output-directory"
|
|
1077
|
+
],
|
|
1078
|
+
"char": "d",
|
|
1079
|
+
"deprecateAliases": true,
|
|
1080
|
+
"name": "output-dir",
|
|
1081
|
+
"summary": "Directory in which to store test result files.",
|
|
1082
|
+
"hasDynamicHelp": false,
|
|
1083
|
+
"multiple": false,
|
|
1084
|
+
"type": "option"
|
|
1085
|
+
},
|
|
1086
|
+
"result-format": {
|
|
1087
|
+
"aliases": [
|
|
1088
|
+
"resultformat"
|
|
1089
|
+
],
|
|
1090
|
+
"char": "r",
|
|
1091
|
+
"deprecateAliases": true,
|
|
1092
|
+
"name": "result-format",
|
|
1093
|
+
"summary": "Format of the test results.",
|
|
1094
|
+
"default": "human",
|
|
1095
|
+
"hasDynamicHelp": false,
|
|
1096
|
+
"multiple": false,
|
|
1097
|
+
"options": [
|
|
1098
|
+
"human",
|
|
1099
|
+
"tap",
|
|
1100
|
+
"junit",
|
|
1101
|
+
"json"
|
|
1102
|
+
],
|
|
1103
|
+
"type": "option"
|
|
1104
|
+
},
|
|
1105
|
+
"concise": {
|
|
1106
|
+
"name": "concise",
|
|
1107
|
+
"summary": "Display only failed test results; works with human-readable output only.",
|
|
1108
|
+
"allowNo": false,
|
|
1109
|
+
"type": "boolean"
|
|
1110
|
+
}
|
|
1111
|
+
},
|
|
1112
|
+
"hasDynamicHelp": true,
|
|
1113
|
+
"hiddenAliases": [],
|
|
1114
|
+
"id": "logic:get:test",
|
|
1115
|
+
"pluginAlias": "@salesforce/plugin-apex",
|
|
1116
|
+
"pluginName": "@salesforce/plugin-apex",
|
|
1117
|
+
"pluginType": "core",
|
|
1118
|
+
"strict": true,
|
|
1119
|
+
"summary": "Get the results of a test run.",
|
|
1120
|
+
"enableJsonFlag": true,
|
|
1121
|
+
"isESM": true,
|
|
1122
|
+
"relativePath": [
|
|
1123
|
+
"lib",
|
|
1124
|
+
"commands",
|
|
1125
|
+
"logic",
|
|
1126
|
+
"get",
|
|
1127
|
+
"test.js"
|
|
1128
|
+
],
|
|
1129
|
+
"aliasPermutations": [],
|
|
1130
|
+
"permutations": [
|
|
1131
|
+
"logic:get:test",
|
|
1132
|
+
"get:logic:test",
|
|
1133
|
+
"get:test:logic",
|
|
1134
|
+
"logic:test:get",
|
|
1135
|
+
"test:logic:get",
|
|
1136
|
+
"test:get:logic"
|
|
1137
|
+
]
|
|
979
1138
|
}
|
|
980
1139
|
},
|
|
981
|
-
"version": "3.
|
|
1140
|
+
"version": "3.7.1"
|
|
982
1141
|
}
|