flow get test

<!-- prettier-ignore-start -->

Display test results for a specific asynchronous test run.

Description for flow get test

Provide a flow test run ID to display test results for an enqueued or completed asynchronous test run. The test run ID is displayed after running the "sf flow run test" command.

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 flow tests 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.

Flags

Flag Name (Long) Flag Name (Short) Description
<code>‑‑api‑version</code> N/A Type: Value<br><br>Override the api version used for api requests made by this command
<code>‑‑code‑coverage</code> <code>‑c</code> Type: Boolean<br><br>Retrieve code coverage results.
<code>‑‑concise</code> N/A Type: Boolean<br><br>Display only failed test results; works with human-readable output only.
<code>‑‑detailed‑coverage</code> N/A Type: Boolean<br><br>Not available for flow tests.
<code>‑‑flags‑dir</code> N/A Type: Value<br><br>Import flag values from a directory.
<code>‑‑json</code> N/A Type: Boolean<br><br>Format output as json.
<code>‑‑output‑dir</code> <code>‑d</code> Type: Value<br><br>Directory in which to store test result files.
<code>‑‑result‑format</code> <code>‑r</code> Type: Value<br>Valid Values: human, tap, junit, json<br>Default value: human<br><br>Format of the test results.
<code>‑‑target‑org</code> <code>‑o</code> Type: Value<br>Required<br><br>Username or alias of the target org. Not required if the target-org configuration variable is already set.
<code>‑‑test‑run‑id</code> <code>‑i</code> Type: Value<br>Required<br><br>ID of the test run.

Examples for flow get test

Display flow test results for your default org using a test run ID:

sf flow get test --test-run-id <test run id>

Similar to previous example, but output the result in JUnit format:

sf flow get test --test-run-id <test run id> --result-format junit

Also retrieve code coverage results and output in JSON format:

sf flow get test --test-run-id <test run id> --code-coverage --json

Specify a directory in which to save the test results from the org with the “me@my.org” username (rather than your default org):

sf flow get test --test-run-id <test run id> --code-coverage --output-dir <path to outputdir> --target-org me@my.org'
<!-- prettier-ignore-end -->