Skip to content

Commit 9eaf879

Browse files
Merge pull request #801 from salesforcecli/jshackell-sfdc-patch-1
W-19609297: more help edits
2 parents 98f1fa2 + b348b8e commit 9eaf879

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

messages/runlogictest.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ This command provides a single and unified way to run tests for multiple Salesfo
88

99
By default, the command executes asynchronously and returns a test run ID. Then use the "sf logic get test" command to retrieve the results. If you want to wait for the test run to complete and see the results in the command output, use the --synchronous flag.
1010

11-
To run specific tests, use the --tests flag, passing it the Apex test class names or the Flow tests in the form Flowtest.<name>. You can also run specific test methods, although if you run the tests synchronously, the methods must belong to a single Apex class or Flow test. To run all tests of a certain category, use --test-level with --test-category. If neither flag is specified, all local tests for all categories are run by default. You can also use the --class-names and --suite-names flags to run Apex test classes or suites.
11+
To run specific tests, use the --tests flag and pass it the names of Apex and Flow tests. For Apex, simply specify the name of the Apex test class. For Flows, use the format "FlowTesting.<name-of-flow-test>". To find the name of all the flow tests in your org, run this command and specify the Flow category, such as "sf logic run test --synchronous --test-category Flow --test-level RunAllTestsInOrg". The command displays a table of all the flow tests it ran; see the "TEST NAME" column for the full name of all available flow tests in your org.
12+
13+
You can also run specific test methods, although if you run the tests synchronously, the methods must belong to a single Apex class or Flow test. To run all tests of a certain category, use --test-category and --test-level together. If neither of these flags is specified, all local tests for all categories are run by default. You can also use the --class-names and --suite-names flags to run Apex test classes or suites.
1214

1315
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 the tested classes or flows. If you specify human-readable result format, use the --detailed-coverage flag to see detailed coverage results for each test method run.
1416

@@ -18,7 +20,7 @@ You must have the "View All Data" org system permission to use this command. The
1820

1921
- Run a mix of specific Apex and Flow tests asynchronously in your default org:
2022

21-
<%= config.bin %> <%= command.id %> --tests MyApexClassTest,FlowTest.ProcessOrder
23+
<%= config.bin %> <%= command.id %> --tests MyApexClassTest,FlowTesting.Modify_Account_Desc.Modify_Account_Desc_TestAccountDescription
2224

2325
- Run all local Apex and Flow tests and wait for the results to complete; run the tests in the org with alias "my-scratch":
2426

0 commit comments

Comments
 (0)