@@ -93,6 +93,7 @@ Happy debugging!
93
93
- [ ` sf apex run ` ] ( #sf-apex-run )
94
94
- [ ` sf apex run test ` ] ( #sf-apex-run-test )
95
95
- [ ` sf apex tail log ` ] ( #sf-apex-tail-log )
96
+ - [ ` sf logic get test ` ] ( #sf-logic-get-test )
96
97
97
98
## ` sf apex get log `
98
99
@@ -148,7 +149,7 @@ FLAG DESCRIPTIONS
148
149
directory.
149
150
```
150
151
151
- _ See code: [ src/commands/apex/get/log.ts] ( https://github.com/salesforcecli/plugin-apex/blob/3.6.19 /src/commands/apex/get/log.ts ) _
152
+ _ See code: [ src/commands/apex/get/log.ts] ( https://github.com/salesforcecli/plugin-apex/blob/3.7.0 /src/commands/apex/get/log.ts ) _
152
153
153
154
## ` sf apex get test `
154
155
@@ -208,7 +209,7 @@ EXAMPLES
208
209
me@myorg'
209
210
```
210
211
211
- _ See code: [ src/commands/apex/get/test.ts] ( https://github.com/salesforcecli/plugin-apex/blob/3.6.19 /src/commands/apex/get/test.ts ) _
212
+ _ See code: [ src/commands/apex/get/test.ts] ( https://github.com/salesforcecli/plugin-apex/blob/3.7.0 /src/commands/apex/get/test.ts ) _
212
213
213
214
## ` sf apex list log `
214
215
@@ -248,7 +249,7 @@ EXAMPLES
248
249
$ sf apex list log --target-org [email protected]
249
250
```
250
251
251
- _ See code: [ src/commands/apex/list/log.ts] ( https://github.com/salesforcecli/plugin-apex/blob/3.6.19 /src/commands/apex/list/log.ts ) _
252
+ _ See code: [ src/commands/apex/list/log.ts] ( https://github.com/salesforcecli/plugin-apex/blob/3.7.0 /src/commands/apex/list/log.ts ) _
252
253
253
254
## ` sf apex run `
254
255
@@ -295,7 +296,7 @@ EXAMPLES
295
296
$ sf apex run
296
297
```
297
298
298
- _ See code: [ src/commands/apex/run.ts] ( https://github.com/salesforcecli/plugin-apex/blob/3.6.19 /src/commands/apex/run.ts ) _
299
+ _ See code: [ src/commands/apex/run.ts] ( https://github.com/salesforcecli/plugin-apex/blob/3.7.0 /src/commands/apex/run.ts ) _
299
300
300
301
## ` sf apex run test `
301
302
@@ -438,7 +439,7 @@ FLAG DESCRIPTIONS
438
439
--tests Test1 --tests Test2
439
440
```
440
441
441
- _ See code: [ src/commands/apex/run/test.ts] ( https://github.com/salesforcecli/plugin-apex/blob/3.6.19 /src/commands/apex/run/test.ts ) _
442
+ _ See code: [ src/commands/apex/run/test.ts] ( https://github.com/salesforcecli/plugin-apex/blob/3.7.0 /src/commands/apex/run/test.ts ) _
442
443
443
444
## ` sf apex tail log `
444
445
@@ -481,6 +482,54 @@ EXAMPLES
481
482
$ sf apex tail log --color --skip-trace-flag
482
483
```
483
484
484
- _ See code: [ src/commands/apex/tail/log.ts] ( https://github.com/salesforcecli/plugin-apex/blob/3.6.19/src/commands/apex/tail/log.ts ) _
485
+ _ See code: [ src/commands/apex/tail/log.ts] ( https://github.com/salesforcecli/plugin-apex/blob/3.7.0/src/commands/apex/tail/log.ts ) _
486
+
487
+ ## ` sf logic get test `
488
+
489
+ Get the results of a test run.
490
+
491
+ ```
492
+ USAGE
493
+ $ sf logic get test -o <value> -i <value> [--json] [--flags-dir <value>] [--api-version <value>]
494
+ [--detailed-coverage -c] [-d <value>] [-r human|tap|junit|json] [--concise]
495
+
496
+ FLAGS
497
+ -c, --code-coverage Retrieve code coverage results.
498
+ -d, --output-dir=<value> Directory in which to store test result files.
499
+ -i, --test-run-id=<value> (required) ID of the test run.
500
+ -o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
501
+ configuration variable is already set.
502
+ -r, --result-format=<option> [default: human] Format of the test results.
503
+ <options: human|tap|junit|json>
504
+ --api-version=<value> Override the api version used for api requests made by this command
505
+ --concise Display only failed test results; works with human-readable output only.
506
+ --detailed-coverage Display detailed code coverage per test.
507
+
508
+ GLOBAL FLAGS
509
+ --flags-dir=<value> Import flag values from a directory.
510
+ --json Format output as json.
511
+
512
+ DESCRIPTION
513
+ Get the results of a test run.
514
+
515
+ When you run 'sf logic run test' to test Apex classes and Flows asynchronously, it returns a test run ID. Use that ID
516
+ with this command to see the results.
517
+
518
+ To see code coverage results, use the --code-coverage flag with --result-format. The output displays a high-level
519
+ summary of the test run and the code coverage values for classes in your org. If you specify human-readable result
520
+ format, use the --detailed-coverage flag to see detailed coverage results for each test method run.
521
+
522
+ EXAMPLES
523
+ Get the results for a specific test run ID in the default human-readable format; uses your default org:
524
+
525
+ $ sf logic get test --test-run-id <test run id>
526
+
527
+ Get the results for a specific test run ID, format them as JUnit, and save them to the "test-results/junit"
528
+ directory; uses the org with alias "my-scratch":
529
+
530
+ $ sf logic get test --test-run-id <test run id> --result-format junit --target-org my-scratch
531
+ ```
532
+
533
+ _ See code: [ src/commands/logic/get/test.ts] ( https://github.com/salesforcecli/plugin-apex/blob/3.7.0/src/commands/logic/get/test.ts ) _
485
534
486
535
<!-- commandsstop -->
0 commit comments