@@ -93,6 +93,7 @@ Happy debugging!
9393- [ ` sf apex run ` ] ( #sf-apex-run )
9494- [ ` sf apex run test ` ] ( #sf-apex-run-test )
9595- [ ` sf apex tail log ` ] ( #sf-apex-tail-log )
96+ - [ ` sf logic get test ` ] ( #sf-logic-get-test )
9697
9798## ` sf apex get log `
9899
@@ -148,7 +149,7 @@ FLAG DESCRIPTIONS
148149 directory.
149150```
150151
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 ) _
152153
153154## ` sf apex get test `
154155
@@ -208,7 +209,7 @@ EXAMPLES
208209 me@myorg'
209210```
210211
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 ) _
212213
213214## ` sf apex list log `
214215
@@ -248,7 +249,7 @@ EXAMPLES
248249 $ sf apex list log --target-org me@my.org
249250```
250251
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 ) _
252253
253254## ` sf apex run `
254255
@@ -295,7 +296,7 @@ EXAMPLES
295296 $ sf apex run
296297```
297298
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 ) _
299300
300301## ` sf apex run test `
301302
@@ -438,7 +439,7 @@ FLAG DESCRIPTIONS
438439 --tests Test1 --tests Test2
439440```
440441
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 ) _
442443
443444## ` sf apex tail log `
444445
@@ -481,6 +482,54 @@ EXAMPLES
481482 $ sf apex tail log --color --skip-trace-flag
482483```
483484
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 ) _
485534
486535<!-- commandsstop -->
0 commit comments