You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- remove Agent as a valid test-category value ([59e607b](https://github.com/salesforcecli/plugin-apex/commit/59e607b80aa0d13e4019e5d234010b3ded093703))
6
+
- remove alias ([93e15e1](https://github.com/salesforcecli/plugin-apex/commit/93e15e1e02c90ad127d21d9d58339d7bbbf51954))
7
+
- rename class ([6bf342c](https://github.com/salesforcecli/plugin-apex/commit/6bf342c229ddd42f8fa6c57bc9217f296845d049))
8
+
9
+
### Features
10
+
11
+
- add logic run test command ([89ff36b](https://github.com/salesforcecli/plugin-apex/commit/89ff36ba5dcca1a357333b62ba414df0afbdfd74))
Copy file name to clipboardExpand all lines: messages/runlogictest.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,9 @@ This command provides a single and unified way to run tests for multiple Salesfo
8
8
9
9
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.
10
10
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> or Agentforce agents tests in the form AgentTest.<name>. You can also run specific test methods, although if you run the tests synchronously, the methods must belong to a single Apex class, Flow test or Agentforce agents 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.
12
14
13
15
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, flows or Agentforce agents. If you specify human-readable result format, use the --detailed-coverage flag to see detailed coverage results for each test method run.
14
16
@@ -18,7 +20,7 @@ You must have the "View All Data" org system permission to use this command. The
18
20
19
21
- Run a mix of specific Apex and Flow tests asynchronously in your default org:
0 commit comments