Get the results of a test run.
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.
To 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.
-
Get the results for a specific test run ID in the default human-readable format; uses your default org:
<%= config.bin %> <%= command.id %> --test-run-id
-
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":
<%= config.bin %> <%= command.id %> --test-run-id --result-format junit --target-org my-scratch
ID of the test run.
Directory in which to store test result files.
Display only failed test results; works with human-readable output only.
Unknown error in Apex Library: %s
Display detailed code coverage per test.