@salesforce/plugin-apex 3.7.1 → 3.8.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.txt +200 -6
- package/README.md +152 -12
- package/lib/commands/apex/get/log.js +13 -4
- package/lib/commands/apex/get/log.js.map +1 -1
- package/lib/commands/apex/get/test.js +13 -4
- package/lib/commands/apex/get/test.js.map +1 -1
- package/lib/commands/apex/list/log.js +13 -4
- package/lib/commands/apex/list/log.js.map +1 -1
- package/lib/commands/apex/run/test.d.ts +3 -8
- package/lib/commands/apex/run/test.js +33 -96
- package/lib/commands/apex/run/test.js.map +1 -1
- package/lib/commands/apex/run.js +13 -4
- package/lib/commands/apex/run.js.map +1 -1
- package/lib/commands/apex/tail/log.js +13 -4
- package/lib/commands/apex/tail/log.js.map +1 -1
- package/lib/commands/logic/get/test.d.ts +1 -0
- package/lib/commands/logic/get/test.js +14 -4
- package/lib/commands/logic/get/test.js.map +1 -1
- package/lib/commands/logic/run/test.d.ts +28 -0
- package/lib/commands/logic/run/test.js +130 -0
- package/lib/commands/logic/run/test.js.map +1 -0
- package/lib/flags.js +13 -4
- package/lib/flags.js.map +1 -1
- package/lib/index.js +13 -4
- package/lib/index.js.map +1 -1
- package/lib/logColorize.js +13 -4
- package/lib/logColorize.js.map +1 -1
- package/lib/reporters/index.js +13 -4
- package/lib/reporters/index.js.map +1 -1
- package/lib/reporters/jsonReporter.js.map +1 -1
- package/lib/reporters/runReporter.js +13 -4
- package/lib/reporters/runReporter.js.map +1 -1
- package/lib/reporters/testReporter.js +14 -5
- package/lib/reporters/testReporter.js.map +1 -1
- package/lib/shared/TestGetBase.js +13 -4
- package/lib/shared/TestGetBase.js.map +1 -1
- package/lib/shared/TestRunService.d.ts +61 -0
- package/lib/shared/TestRunService.js +161 -0
- package/lib/shared/TestRunService.js.map +1 -0
- package/messages/logicgettest.md +3 -3
- package/messages/runlogictest.md +51 -0
- package/messages/runtest.md +2 -33
- package/messages/runtestcommon.md +40 -0
- package/oclif.manifest.json +260 -5
- package/package.json +10 -6
package/LICENSE.txt
CHANGED
|
@@ -1,12 +1,206 @@
|
|
|
1
|
-
|
|
1
|
+
Apache License Version 2.0
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Salesforce, Inc.
|
|
2
4
|
All rights reserved.
|
|
3
5
|
|
|
4
|
-
|
|
6
|
+
Apache License
|
|
7
|
+
Version 2.0, January 2004
|
|
8
|
+
http://www.apache.org/licenses/
|
|
9
|
+
|
|
10
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
11
|
+
|
|
12
|
+
1. Definitions.
|
|
13
|
+
|
|
14
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
15
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
16
|
+
|
|
17
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
18
|
+
the copyright owner that is granting the License.
|
|
19
|
+
|
|
20
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
21
|
+
other entities that control, are controlled by, or are under common
|
|
22
|
+
control with that entity. For the purposes of this definition,
|
|
23
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
24
|
+
direction or management of such entity, whether by contract or
|
|
25
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
26
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
27
|
+
|
|
28
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
29
|
+
exercising permissions granted by this License.
|
|
30
|
+
|
|
31
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
32
|
+
including but not limited to software source code, documentation
|
|
33
|
+
source, and configuration files.
|
|
34
|
+
|
|
35
|
+
"Object" form shall mean any form resulting from mechanical
|
|
36
|
+
transformation or translation of a Source form, including but
|
|
37
|
+
not limited to compiled object code, generated documentation,
|
|
38
|
+
and conversions to other media types.
|
|
39
|
+
|
|
40
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
41
|
+
Object form, made available under the License, as indicated by a
|
|
42
|
+
copyright notice that is included in or attached to the work
|
|
43
|
+
(an example is provided in the Appendix below).
|
|
44
|
+
|
|
45
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
46
|
+
form, that is based on (or derived from) the Work and for which the
|
|
47
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
48
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
49
|
+
of this License, Derivative Works shall not include works that remain
|
|
50
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
51
|
+
the Work and Derivative Works thereof.
|
|
52
|
+
|
|
53
|
+
"Contribution" shall mean any work of authorship, including
|
|
54
|
+
the original version of the Work and any modifications or additions
|
|
55
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
56
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
57
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
58
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
59
|
+
means any form of electronic, verbal, or written communication sent
|
|
60
|
+
to the Licensor or its representatives, including but not limited to
|
|
61
|
+
communication on electronic mailing lists, source code control systems,
|
|
62
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
63
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
64
|
+
excluding communication that is conspicuously marked or otherwise
|
|
65
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
66
|
+
|
|
67
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
68
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
69
|
+
subsequently incorporated within the Work.
|
|
70
|
+
|
|
71
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
72
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
73
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
74
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
75
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
76
|
+
Work and such Derivative Works in Source or Object form.
|
|
77
|
+
|
|
78
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
79
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
80
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
81
|
+
(except as stated in this section) patent license to make, have made,
|
|
82
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
83
|
+
where such license applies only to those patent claims licensable
|
|
84
|
+
by such Contributor that are necessarily infringed by their
|
|
85
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
86
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
87
|
+
institute patent litigation against any entity (including a
|
|
88
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
89
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
90
|
+
or contributory patent infringement, then any patent licenses
|
|
91
|
+
granted to You under this License for that Work shall terminate
|
|
92
|
+
as of the date such litigation is filed.
|
|
93
|
+
|
|
94
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
95
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
96
|
+
modifications, and in Source or Object form, provided that You
|
|
97
|
+
meet the following conditions:
|
|
98
|
+
|
|
99
|
+
(a) You must give any other recipients of the Work or
|
|
100
|
+
Derivative Works a copy of this License; and
|
|
101
|
+
|
|
102
|
+
(b) You must cause any modified files to carry prominent notices
|
|
103
|
+
stating that You changed the files; and
|
|
104
|
+
|
|
105
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
106
|
+
that You distribute, all copyright, patent, trademark, and
|
|
107
|
+
attribution notices from the Source form of the Work,
|
|
108
|
+
excluding those notices that do not pertain to any part of
|
|
109
|
+
the Derivative Works; and
|
|
110
|
+
|
|
111
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
112
|
+
distribution, then any Derivative Works that You distribute must
|
|
113
|
+
include a readable copy of the attribution notices contained
|
|
114
|
+
within such NOTICE file, excluding those notices that do not
|
|
115
|
+
pertain to any part of the Derivative Works, in at least one
|
|
116
|
+
of the following places: within a NOTICE text file distributed
|
|
117
|
+
as part of the Derivative Works; within the Source form or
|
|
118
|
+
documentation, if provided along with the Derivative Works; or,
|
|
119
|
+
within a display generated by the Derivative Works, if and
|
|
120
|
+
wherever such third-party notices normally appear. The contents
|
|
121
|
+
of the NOTICE file are for informational purposes only and
|
|
122
|
+
do not modify the License. You may add Your own attribution
|
|
123
|
+
notices within Derivative Works that You distribute, alongside
|
|
124
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
125
|
+
that such additional attribution notices cannot be construed
|
|
126
|
+
as modifying the License.
|
|
127
|
+
|
|
128
|
+
You may add Your own copyright statement to Your modifications and
|
|
129
|
+
may provide additional or different license terms and conditions
|
|
130
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
131
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
132
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
133
|
+
the conditions stated in this License.
|
|
134
|
+
|
|
135
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
136
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
137
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
138
|
+
this License, without any additional terms or conditions.
|
|
139
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
140
|
+
the terms of any separate license agreement you may have executed
|
|
141
|
+
with Licensor regarding such Contributions.
|
|
142
|
+
|
|
143
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
144
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
145
|
+
except as required for reasonable and customary use in describing the
|
|
146
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
147
|
+
|
|
148
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
149
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
150
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
151
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
152
|
+
implied, including, without limitation, any warranties or conditions
|
|
153
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
154
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
155
|
+
appropriateness of using or redistributing the Work and assume any
|
|
156
|
+
risks associated with Your exercise of permissions under this License.
|
|
157
|
+
|
|
158
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
159
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
160
|
+
unless required by applicable law (such as deliberate and grossly
|
|
161
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
162
|
+
liable to You for damages, including any direct, indirect, special,
|
|
163
|
+
incidental, or consequential damages of any character arising as a
|
|
164
|
+
result of this License or out of the use or inability to use the
|
|
165
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
166
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
167
|
+
other commercial damages or losses), even if such Contributor
|
|
168
|
+
has been advised of the possibility of such damages.
|
|
169
|
+
|
|
170
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
171
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
172
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
173
|
+
or other liability obligations and/or rights consistent with this
|
|
174
|
+
License. However, in accepting such obligations, You may act only
|
|
175
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
176
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
177
|
+
defend, and hold each Contributor harmless for any liability
|
|
178
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
179
|
+
of your accepting any such warranty or additional liability.
|
|
180
|
+
|
|
181
|
+
END OF TERMS AND CONDITIONS
|
|
182
|
+
|
|
183
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
184
|
+
|
|
185
|
+
To apply the Apache License to your work, attach the following
|
|
186
|
+
boilerplate notice, with the fields enclosed by brackets "{}"
|
|
187
|
+
replaced with your own identifying information. (Don't include
|
|
188
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
189
|
+
comment syntax for the file format. We also recommend that a
|
|
190
|
+
file or class name and description of purpose be included on the
|
|
191
|
+
same "printed page" as the copyright notice for easier
|
|
192
|
+
identification within third-party archives.
|
|
5
193
|
|
|
6
|
-
|
|
194
|
+
Copyright {yyyy} {name of copyright owner}
|
|
7
195
|
|
|
8
|
-
|
|
196
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
197
|
+
you may not use this file except in compliance with the License.
|
|
198
|
+
You may obtain a copy of the License at
|
|
9
199
|
|
|
10
|
-
|
|
200
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
11
201
|
|
|
12
|
-
|
|
202
|
+
Unless required by applicable law or agreed to in writing, software
|
|
203
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
204
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
205
|
+
See the License for the specific language governing permissions and
|
|
206
|
+
limitations under the License.
|
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Salesforce Apex Plugin
|
|
2
2
|
|
|
3
3
|

|
|
4
|
-
[](https://opensource.org/license/apache-2-0)
|
|
5
5
|
[](http://commitizen.github.io/cz-cli/)
|
|
6
6
|
|
|
7
7
|
## Introduction
|
|
@@ -94,6 +94,7 @@ Happy debugging!
|
|
|
94
94
|
- [`sf apex run test`](#sf-apex-run-test)
|
|
95
95
|
- [`sf apex tail log`](#sf-apex-tail-log)
|
|
96
96
|
- [`sf logic get test`](#sf-logic-get-test)
|
|
97
|
+
- [`sf logic run test`](#sf-logic-run-test)
|
|
97
98
|
|
|
98
99
|
## `sf apex get log`
|
|
99
100
|
|
|
@@ -149,7 +150,7 @@ FLAG DESCRIPTIONS
|
|
|
149
150
|
directory.
|
|
150
151
|
```
|
|
151
152
|
|
|
152
|
-
_See code: [src/commands/apex/get/log.ts](https://github.com/salesforcecli/plugin-apex/blob/3.
|
|
153
|
+
_See code: [src/commands/apex/get/log.ts](https://github.com/salesforcecli/plugin-apex/blob/3.8.1-beta.0/src/commands/apex/get/log.ts)_
|
|
153
154
|
|
|
154
155
|
## `sf apex get test`
|
|
155
156
|
|
|
@@ -209,7 +210,7 @@ EXAMPLES
|
|
|
209
210
|
me@myorg'
|
|
210
211
|
```
|
|
211
212
|
|
|
212
|
-
_See code: [src/commands/apex/get/test.ts](https://github.com/salesforcecli/plugin-apex/blob/3.
|
|
213
|
+
_See code: [src/commands/apex/get/test.ts](https://github.com/salesforcecli/plugin-apex/blob/3.8.1-beta.0/src/commands/apex/get/test.ts)_
|
|
213
214
|
|
|
214
215
|
## `sf apex list log`
|
|
215
216
|
|
|
@@ -249,7 +250,7 @@ EXAMPLES
|
|
|
249
250
|
$ sf apex list log --target-org me@my.org
|
|
250
251
|
```
|
|
251
252
|
|
|
252
|
-
_See code: [src/commands/apex/list/log.ts](https://github.com/salesforcecli/plugin-apex/blob/3.
|
|
253
|
+
_See code: [src/commands/apex/list/log.ts](https://github.com/salesforcecli/plugin-apex/blob/3.8.1-beta.0/src/commands/apex/list/log.ts)_
|
|
253
254
|
|
|
254
255
|
## `sf apex run`
|
|
255
256
|
|
|
@@ -296,7 +297,7 @@ EXAMPLES
|
|
|
296
297
|
$ sf apex run
|
|
297
298
|
```
|
|
298
299
|
|
|
299
|
-
_See code: [src/commands/apex/run.ts](https://github.com/salesforcecli/plugin-apex/blob/3.
|
|
300
|
+
_See code: [src/commands/apex/run.ts](https://github.com/salesforcecli/plugin-apex/blob/3.8.1-beta.0/src/commands/apex/run.ts)_
|
|
300
301
|
|
|
301
302
|
## `sf apex run test`
|
|
302
303
|
|
|
@@ -348,6 +349,9 @@ DESCRIPTION
|
|
|
348
349
|
haven't finished by the end of the wait time, the command displays a test run ID. Use the "sf apex get test
|
|
349
350
|
--test-run-id" command to get the results.
|
|
350
351
|
|
|
352
|
+
To run both Apex and Flow tests together, run the "sf logic run test" CLI command, which has similar flags as this
|
|
353
|
+
command, but expands the --tests flag to also include Flow tests.
|
|
354
|
+
|
|
351
355
|
You must have the "View All Data" system permission to use this command. The permission is disabled by default and can
|
|
352
356
|
be enabled only by a system administrator.
|
|
353
357
|
|
|
@@ -439,7 +443,7 @@ FLAG DESCRIPTIONS
|
|
|
439
443
|
--tests Test1 --tests Test2
|
|
440
444
|
```
|
|
441
445
|
|
|
442
|
-
_See code: [src/commands/apex/run/test.ts](https://github.com/salesforcecli/plugin-apex/blob/3.
|
|
446
|
+
_See code: [src/commands/apex/run/test.ts](https://github.com/salesforcecli/plugin-apex/blob/3.8.1-beta.0/src/commands/apex/run/test.ts)_
|
|
443
447
|
|
|
444
448
|
## `sf apex tail log`
|
|
445
449
|
|
|
@@ -482,7 +486,7 @@ EXAMPLES
|
|
|
482
486
|
$ sf apex tail log --color --skip-trace-flag
|
|
483
487
|
```
|
|
484
488
|
|
|
485
|
-
_See code: [src/commands/apex/tail/log.ts](https://github.com/salesforcecli/plugin-apex/blob/3.
|
|
489
|
+
_See code: [src/commands/apex/tail/log.ts](https://github.com/salesforcecli/plugin-apex/blob/3.8.1-beta.0/src/commands/apex/tail/log.ts)_
|
|
486
490
|
|
|
487
491
|
## `sf logic get test`
|
|
488
492
|
|
|
@@ -512,8 +516,8 @@ GLOBAL FLAGS
|
|
|
512
516
|
DESCRIPTION
|
|
513
517
|
Get the results of a test run.
|
|
514
518
|
|
|
515
|
-
When you run
|
|
516
|
-
with this command to see the results.
|
|
519
|
+
When you run "sf logic run test" to test Apex classes, Flows, and Agentforce agents asynchronously, it returns a test
|
|
520
|
+
run ID. Use that ID with this command to see the results.
|
|
517
521
|
|
|
518
522
|
To see code coverage results, use the --code-coverage flag with --result-format. The output displays a high-level
|
|
519
523
|
summary of the test run and the code coverage values for classes in your org. If you specify human-readable result
|
|
@@ -522,14 +526,150 @@ DESCRIPTION
|
|
|
522
526
|
EXAMPLES
|
|
523
527
|
Get the results for a specific test run ID in the default human-readable format; uses your default org:
|
|
524
528
|
|
|
525
|
-
$ sf logic get test --test-run-id <test
|
|
529
|
+
$ sf logic get test --test-run-id <test-run-id>
|
|
526
530
|
|
|
527
531
|
Get the results for a specific test run ID, format them as JUnit, and save them to the "test-results/junit"
|
|
528
532
|
directory; uses the org with alias "my-scratch":
|
|
529
533
|
|
|
530
|
-
$ sf logic get test --test-run-id <test
|
|
534
|
+
$ sf logic get test --test-run-id <test-run-id> --result-format junit --target-org my-scratch
|
|
535
|
+
```
|
|
536
|
+
|
|
537
|
+
_See code: [src/commands/logic/get/test.ts](https://github.com/salesforcecli/plugin-apex/blob/3.8.1-beta.0/src/commands/logic/get/test.ts)_
|
|
538
|
+
|
|
539
|
+
## `sf logic run test`
|
|
540
|
+
|
|
541
|
+
Invoke tests for Apex, Flows, and Agentforce agents in an org.
|
|
542
|
+
|
|
543
|
+
```
|
|
544
|
+
USAGE
|
|
545
|
+
$ sf logic run test -o <value> [--json] [--flags-dir <value>] [--api-version <value>] [-d <value>] [-l
|
|
546
|
+
RunLocalTests|RunAllTestsInOrg|RunSpecifiedTests] [-n <value>... | -s <value>... | -t <value>... | --test-category
|
|
547
|
+
Agent|Apex|Flow...] [-r human|tap|junit|json] [-w <value>] [-y] [-v -c] [--concise]
|
|
548
|
+
|
|
549
|
+
FLAGS
|
|
550
|
+
-c, --code-coverage Retrieve code coverage results.
|
|
551
|
+
-d, --output-dir=<value> Directory in which to store test run files.
|
|
552
|
+
-l, --test-level=<option> Level of tests to run; default is RunLocalTests.
|
|
553
|
+
<options: RunLocalTests|RunAllTestsInOrg|RunSpecifiedTests>
|
|
554
|
+
-n, --class-names=<value>... Apex test class names to run; default is all classes.
|
|
555
|
+
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
|
|
556
|
+
configuration variable is already set.
|
|
557
|
+
-r, --result-format=<option> [default: human] Format of the test results.
|
|
558
|
+
<options: human|tap|junit|json>
|
|
559
|
+
-s, --suite-names=<value>... Apex test suite names to run.
|
|
560
|
+
-t, --tests=<value>... List of test names to run. Can include Apex test classes, Flow tests, and Agentforce
|
|
561
|
+
agent tests.
|
|
562
|
+
-v, --detailed-coverage Display detailed code coverage per test.
|
|
563
|
+
-w, --wait=<value> Sets the streaming client socket timeout in minutes; specify a longer wait time if
|
|
564
|
+
timeouts occur frequently.
|
|
565
|
+
-y, --synchronous Runs test methods from a single Apex class synchronously; if not specified, tests are
|
|
566
|
+
run asynchronously.
|
|
567
|
+
--api-version=<value> Override the api version used for api requests made by this command
|
|
568
|
+
--concise Display only failed test results; works with human-readable output only.
|
|
569
|
+
--test-category=<option>... Category of tests to run, such as Agent, Apex, or Flow.
|
|
570
|
+
<options: Agent|Apex|Flow>
|
|
571
|
+
|
|
572
|
+
GLOBAL FLAGS
|
|
573
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
574
|
+
--json Format output as json.
|
|
575
|
+
|
|
576
|
+
DESCRIPTION
|
|
577
|
+
Invoke tests for Apex, Flows, and Agentforce agents in an org.
|
|
578
|
+
|
|
579
|
+
This command provides a single and unified way to run tests for multiple Salesforce features, such as Apex classes,
|
|
580
|
+
Flows, and Agentforce agents. Running the tests together with a single command ensures seamless interoperability
|
|
581
|
+
between the features.
|
|
582
|
+
|
|
583
|
+
By default, the command executes asynchronously and returns a test run ID. Then use the displayed "sf logic get test"
|
|
584
|
+
command to retrieve the results. If you want to wait for the test run to complete and see the results in the command
|
|
585
|
+
output, use the --synchronous flag.
|
|
586
|
+
|
|
587
|
+
To run specific tests, use the --tests flag and pass it the names of Apex, Flow, and Agentforce agent tests. Here's
|
|
588
|
+
how to find the name of each type of test:
|
|
589
|
+
|
|
590
|
+
- For Apex, simply specify the name of the Apex test class.
|
|
591
|
+
- For Flows, use the format "FlowTesting.<name-of-flow-test>". To find the name of all the Flow tests in your org, run
|
|
592
|
+
this command and specify the Flow category, such as "sf logic run test --synchronous --test-category Flow --test-level
|
|
593
|
+
RunAllTestsInOrg". The command displays a table of all the Flow tests it ran; see the "TEST NAME" column for the full
|
|
594
|
+
name of all available Flow tests in your org.
|
|
595
|
+
- For Agentforce agents, use the format "AgentTesting.<name-of-agent-test>". To find the names of all the Agentforce
|
|
596
|
+
agent tests in your org, run the "sf agent test list" command. The command displays the available agent tests in the
|
|
597
|
+
"API Name" column.
|
|
598
|
+
|
|
599
|
+
You can also run specific test methods, although if you run the tests synchronously, the methods must belong to a
|
|
600
|
+
single Apex class, Flow test, or Agentforce agent test. To run all tests of a certain category, use --test-category
|
|
601
|
+
and --test-level together. If neither of these flags is specified, all local tests for all categories are run by
|
|
602
|
+
default. You can also use the --class-names and --suite-names flags to run Apex test classes or suites.
|
|
603
|
+
|
|
604
|
+
To see code coverage results, use the --code-coverage flag with --result-format. The output displays a high-level
|
|
605
|
+
summary of the test run and the code coverage values for the tested Apex classes, Flows, or Agentforce agents. If you
|
|
606
|
+
specify human-readable result format, use the --detailed-coverage flag to see detailed coverage results for each test
|
|
607
|
+
method run.
|
|
608
|
+
|
|
609
|
+
You must have the "View All Data" org system permission to use this command. The permission is disabled by default and
|
|
610
|
+
can be enabled only by a system administrator.
|
|
611
|
+
|
|
612
|
+
EXAMPLES
|
|
613
|
+
Run a specific Agentforce agent test asynchronously in your default org:
|
|
614
|
+
|
|
615
|
+
$ sf logic run test --tests AgentTesting.Guest_Experience_Agent_Test
|
|
616
|
+
|
|
617
|
+
Run a mix of specific Agentforce agent, Apex, and Flow tests asynchronously in your default org:
|
|
618
|
+
|
|
619
|
+
$ sf logic run test --tests AgentTesting.Guest_Experience_Agent_Test --tests MyApexClassTest --tests \
|
|
620
|
+
FlowTesting.Modify_Account_Desc.Modify_Account_Desc_TestAccountDescription
|
|
621
|
+
|
|
622
|
+
Run all local Apex and Flow tests and wait for the results to complete; run the tests in the org with alias
|
|
623
|
+
"my-scratch":
|
|
624
|
+
|
|
625
|
+
$ sf logic run test --test-level RunLocalTests --test-category Apex --test-category Flow --synchronous \
|
|
626
|
+
--target-org my-scratch
|
|
627
|
+
|
|
628
|
+
Run two methods in an Apex test class and an Apex test suite:
|
|
629
|
+
|
|
630
|
+
$ sf logic run test --class-names MyApexClassTest.methodA --class-names MyApexClassTest.methodB --suite-names \
|
|
631
|
+
MySuite
|
|
632
|
+
|
|
633
|
+
Run all local tests for all categories (the default behavior), save the JUnit results to the "test-results"
|
|
634
|
+
directory, and include code coverage results:
|
|
635
|
+
|
|
636
|
+
$ sf logic run test --result-format junit --output-dir test-results --synchronous --code-coverage
|
|
637
|
+
|
|
638
|
+
FLAG DESCRIPTIONS
|
|
639
|
+
-l, --test-level=RunLocalTests|RunAllTestsInOrg|RunSpecifiedTests Level of tests to run; default is RunLocalTests.
|
|
640
|
+
|
|
641
|
+
Here's what the levels mean:
|
|
642
|
+
|
|
643
|
+
- RunSpecifiedTests — Only the tests that you specify in the runTests option are run. Code coverage requirements
|
|
644
|
+
differ from the default coverage requirements when using this test level. The executed tests must cover each class
|
|
645
|
+
and trigger in the deployment package for a minimum of 75% code coverage. This coverage is computed for each class
|
|
646
|
+
and triggers individually, and is different than the overall coverage percentage.
|
|
647
|
+
- RunLocalTests — All local tests in your org, including tests that originate from no-namespaced unlocked packages,
|
|
648
|
+
are run. The tests that originate from installed managed packages and namespaced unlocked packages aren't run. This
|
|
649
|
+
test level is the default for production deployments that include Apex classes or triggers.
|
|
650
|
+
- RunAllTestsInOrg — All tests are run. The tests include all tests in your org.
|
|
651
|
+
|
|
652
|
+
-n, --class-names=<value>... Apex test class names to run; default is all classes.
|
|
653
|
+
|
|
654
|
+
If you select --class-names, you can't specify --suite-names or --tests.
|
|
655
|
+
For multiple classes, repeat the flag for each.
|
|
656
|
+
--class-names Class1 --class-names Class2
|
|
657
|
+
|
|
658
|
+
-s, --suite-names=<value>... Apex test suite names to run.
|
|
659
|
+
|
|
660
|
+
If you select --suite-names, you can't specify --class-names or --tests.
|
|
661
|
+
For multiple suites, repeat the flag for each.
|
|
662
|
+
--suite-names Suite1 --suite-names Suite2
|
|
663
|
+
|
|
664
|
+
-t, --tests=<value>...
|
|
665
|
+
|
|
666
|
+
List of test names to run. Can include Apex test classes, Flow tests, and Agentforce agent tests.
|
|
667
|
+
|
|
668
|
+
If you specify --tests, you can't specify --class-names or --suite-names
|
|
669
|
+
For multiple tests, repeat the flag for each.
|
|
670
|
+
--tests Test1 --tests Test2
|
|
531
671
|
```
|
|
532
672
|
|
|
533
|
-
_See code: [src/commands/logic/
|
|
673
|
+
_See code: [src/commands/logic/run/test.ts](https://github.com/salesforcecli/plugin-apex/blob/3.8.1-beta.0/src/commands/logic/run/test.ts)_
|
|
534
674
|
|
|
535
675
|
<!-- commandsstop -->
|
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the
|
|
5
|
-
*
|
|
2
|
+
* Copyright 2025, Salesforce, Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
6
15
|
*/
|
|
7
16
|
import { LogService } from '@salesforce/apex-node';
|
|
8
17
|
import { Flags, loglevel, orgApiVersionFlagWithDeprecations, requiredOrgFlagWithDeprecations, SfCommand, } from '@salesforce/sf-plugins-core';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log.js","sourceRoot":"","sources":["../../../../src/commands/apex/get/log.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"log.js","sourceRoot":"","sources":["../../../../src/commands/apex/get/log.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAC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AAC;QAED,OAAO,UAAU,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE;YAClC,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;YACnC,OAAO,EAAE,GAAG,EAAE,SAAS,CAAC,GAAG,EAAE,CAAC;QAChC,CAAC,CAAC,CAAC;IACL,CAAC"}
|
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the
|
|
5
|
-
*
|
|
2
|
+
* Copyright 2025, Salesforce, Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
6
15
|
*/
|
|
7
16
|
import { Flags, loglevel, orgApiVersionFlagWithDeprecations, requiredOrgFlagWithDeprecations, SfCommand, } from '@salesforce/sf-plugins-core';
|
|
8
17
|
import { Messages } from '@salesforce/core';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test.js","sourceRoot":"","sources":["../../../../src/commands/apex/get/test.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"test.js","sourceRoot":"","sources":["../../../../src/commands/apex/get/test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,EACL,QAAQ,EACR,iCAAiC,EACjC,+BAA+B,EAC/B,SAAS,GACV,MAAM,6BAA6B,CAAC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e,CAAC;SAC7B,CAAC;QACF,YAAY,EAAE,KAAK,CAAC,SAAS,CAAC;YAC5B,OAAO,EAAE,CAAC,WAAW,EAAE,kBAAkB,CAAC;YAC1C,gBAAgB,EAAE,IAAI;YACtB,IAAI,EAAE,GAAG;YACT,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,0BAA0B,CAAC;SACzD,CAAC;QACF,eAAe,EAAE,gBAAgB;QACjC,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC;YACrB,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,uBAAuB,CAAC;SACtD,CAAC;KACH,CAAC;IAEK,KAAK,CAAC,GAAG;QACd,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAEzC,OAAO,WAAW,CAAC,OAAO,CAAC;YACzB,UAAU,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;YACnE,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC;YAC/B,YAAY,EAAE,KAAK,CAAC,eAAe,CAAC;YACpC,SAAS,EAAE,KAAK,CAAC,YAAY,CAAC;YAC9B,YAAY,EAAE,KAAK,CAAC,eAAe,CAAC;YACpC,IAAI,EAAE,KAAK,CAAC,IAAI;YAChB,gBAAgB,EAAE,KAAK,CAAC,mBAAmB,CAAC;YAC5C,OAAO,EAAE,KAAK,CAAC,OAAO;YACtB,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE;SAChC,CAAC,CAAC;IACL,CAAC"}
|
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the
|
|
5
|
-
*
|
|
2
|
+
* Copyright 2025, Salesforce, Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
6
15
|
*/
|
|
7
16
|
import { LogService } from '@salesforce/apex-node';
|
|
8
17
|
import { SfCommand, requiredOrgFlagWithDeprecations, orgApiVersionFlagWithDeprecations, loglevel, } from '@salesforce/sf-plugins-core';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log.js","sourceRoot":"","sources":["../../../../src/commands/apex/list/log.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"log.js","sourceRoot":"","sources":["../../../../src/commands/apex/list/log.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAa,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EACL,SAAS,EACT,+BAA+B,EAC/B,iCAAiC,EACjC,QAAQ,GACT,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,yBAAyB,EAAE,MAAM,CAAC,CAAC;AAK1E,MAAM,CAAC,OAAO,OAAO,GAAI,SAAQ,SAAwB;IAChD,MAAM,CAAU,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IACzD,MAAM,CAAU,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IACjE,MAAM,CAAU,QAAQ,GAAG,QAAQ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E;oBACxC,QAAQ;iBACT;gBACD,QAAQ,EAAE,MAAM;aACjB,CAAC,CAAC;QACL,CAAC;QAED,OAAO,UAAU,CAAC;IACpB,CAAC;;AAGH,MAAM,cAAc,GAAG,CAAC,SAAoB,EAAe,EAAE,CAAC,CAAC;IAC7D,GAAG,SAAS;IACZ,oBAAoB,EAAE,MAAM,CAAC,SAAS,CAAC,oBAAoB,CAAC;IAC5D,IAAI,EAAE,SAAS,CAAC,OAAO,CAAC,IAAI;CAC7B,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,EAAa,EAAa,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,SAAS,EAAE,UAAU,CAAC,EAAE,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;AAE9G,MAAM,UAAU,GAAG,CAAC,IAAY,EAAU,EAAE;IAC1C,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAClC,OAAO,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AAC1F,CAAC,CAAC"}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import { CancellationTokenSource
|
|
1
|
+
import { CancellationTokenSource } from '@salesforce/apex-node';
|
|
2
2
|
import { SfCommand } from '@salesforce/sf-plugins-core';
|
|
3
|
-
import {
|
|
4
|
-
import { RunResult } from '../../../reporters/index.js';
|
|
5
|
-
export declare const TestLevelValues: string[];
|
|
6
|
-
export type RunCommandResult = RunResult | TestRunIdResult;
|
|
3
|
+
import { RunCommandResult } from '../../../shared/TestRunService.js';
|
|
7
4
|
export default class Test extends SfCommand<RunCommandResult> {
|
|
8
5
|
static readonly summary: string;
|
|
9
6
|
static readonly description: string;
|
|
@@ -21,13 +18,11 @@ export default class Test extends SfCommand<RunCommandResult> {
|
|
|
21
18
|
'result-format': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
22
19
|
'suite-names': import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
23
20
|
tests: import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
24
|
-
wait: import("@oclif/core/interfaces").OptionFlag<Duration, import("@oclif/core/interfaces").CustomOptions>;
|
|
21
|
+
wait: import("@oclif/core/interfaces").OptionFlag<import("@salesforce/kit").Duration, import("@oclif/core/interfaces").CustomOptions>;
|
|
25
22
|
synchronous: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
26
23
|
'detailed-coverage': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
27
24
|
concise: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
28
25
|
};
|
|
29
26
|
protected cancellationTokenSource: CancellationTokenSource;
|
|
30
27
|
run(): Promise<RunCommandResult>;
|
|
31
|
-
private runTest;
|
|
32
|
-
private runTestAsynchronous;
|
|
33
28
|
}
|