@salesforce/plugin-apex 1.3.0 → 1.4.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 +12 -0
- package/README.md +350 -12
- package/bin/dev +21 -0
- package/bin/dev.cmd +3 -0
- package/bin/run +3 -2
- package/bin/run.cmd +1 -1
- package/lib/commands/force/apex/execute.js +11 -17
- package/lib/commands/force/apex/execute.js.map +1 -1
- package/lib/commands/force/apex/log/get.js +14 -14
- package/lib/commands/force/apex/log/get.js.map +1 -1
- package/lib/commands/force/apex/log/list.js +18 -21
- package/lib/commands/force/apex/log/list.js.map +1 -1
- package/lib/commands/force/apex/log/tail.js +11 -11
- package/lib/commands/force/apex/test/report.js +18 -22
- package/lib/commands/force/apex/test/report.js.map +1 -1
- package/lib/commands/force/apex/test/run.js +31 -48
- package/lib/commands/force/apex/test/run.js.map +1 -1
- package/lib/legacyColorization.js +3 -3
- package/lib/legacyColorization.js.map +1 -1
- package/lib/reporters/jsonReporter.js +28 -36
- package/lib/reporters/jsonReporter.js.map +1 -1
- package/lib/reporters/util.d.ts +1 -0
- package/lib/reporters/util.js +14 -15
- package/lib/reporters/util.js.map +1 -1
- package/lib/utils.js +3 -5
- package/lib/utils.js.map +1 -1
- package/messages/messages.json +22 -0
- package/oclif.manifest.json +1 -1
- package/package.json +59 -45
- package/yarn.lock +3847 -1856
package/LICENSE.txt
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
Copyright (c) 2023, Salesforce.com, Inc.
|
|
2
|
+
All rights reserved.
|
|
3
|
+
|
|
4
|
+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
5
|
+
|
|
6
|
+
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
7
|
+
|
|
8
|
+
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
9
|
+
|
|
10
|
+
* Neither the name of Salesforce.com nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
|
11
|
+
|
|
12
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
package/README.md
CHANGED
|
@@ -1,23 +1,20 @@
|
|
|
1
1
|
# Salesforce Apex Plugin
|
|
2
2
|
|
|
3
|
-
[](https://circleci.com/gh/forcedotcom/salesforcedx-apex)
|
|
4
3
|

|
|
5
4
|
[](https://opensource.org/licenses/BSD-3-Clause)
|
|
6
5
|
[](http://commitizen.github.io/cz-cli/)
|
|
7
6
|
|
|
8
7
|
## Introduction
|
|
9
|
-
This is an oclif plugin that supports the Salesforce Apex commands. The plugin is bundled with the [salesforcedx plugin](https://www.npmjs.com/package/salesforcedx).
|
|
10
|
-
|
|
11
|
-
Note: This plugin is in beta and has been released early so we can collect feedback. It may contain bugs, undergo major changes, or be discontinued.
|
|
12
8
|
|
|
9
|
+
This is an oclif plugin that supports the Salesforce Apex commands.
|
|
13
10
|
|
|
14
11
|
### Building the Plugin
|
|
15
12
|
|
|
16
13
|
Clone the project and `cd` into it:
|
|
17
14
|
|
|
18
15
|
```
|
|
19
|
-
$ git clone git@github.com:
|
|
20
|
-
$ cd
|
|
16
|
+
$ git clone git@github.com:salesforcecli/plugin-apex.git
|
|
17
|
+
$ cd plugin-apex
|
|
21
18
|
```
|
|
22
19
|
|
|
23
20
|
Ensure you have [Yarn](https://yarnpkg.com/) installed, then run:
|
|
@@ -26,9 +23,11 @@ Ensure you have [Yarn](https://yarnpkg.com/) installed, then run:
|
|
|
26
23
|
$ yarn install
|
|
27
24
|
$ yarn build
|
|
28
25
|
```
|
|
26
|
+
|
|
29
27
|
<br />
|
|
30
28
|
|
|
31
29
|
### Linking the Plugin
|
|
30
|
+
|
|
32
31
|
Link the plugin from the `plugin-apex` package directory and then run your command:
|
|
33
32
|
|
|
34
33
|
```
|
|
@@ -39,8 +38,9 @@ $ sfdx force:apex:log:list -u myOrg@example.com
|
|
|
39
38
|
Alternatively, you can also run the command from the `plugin-apex` package directory without linking the plugin:
|
|
40
39
|
|
|
41
40
|
```
|
|
42
|
-
$ NODE_OPTIONS=--inspect-brk bin/
|
|
41
|
+
$ NODE_OPTIONS=--inspect-brk bin/dev force:apex:log:list -u myOrg@example.com
|
|
43
42
|
```
|
|
43
|
+
|
|
44
44
|
<br />
|
|
45
45
|
### Running the Test Suite
|
|
46
46
|
|
|
@@ -63,19 +63,357 @@ We recommend using the Visual Studio Code (VS Code) IDE for your plugin developm
|
|
|
63
63
|
$ sfdx force:apex:log:list -u myOrg@example.com --dev-suspend
|
|
64
64
|
```
|
|
65
65
|
|
|
66
|
-
Alternatively, replace `sfdx` with `NODE_OPTIONS=--inspect-brk bin/
|
|
66
|
+
Alternatively, replace `sfdx` with `NODE_OPTIONS=--inspect-brk bin/dev` and run your command:
|
|
67
67
|
|
|
68
68
|
```
|
|
69
|
-
$ NODE_OPTIONS=--inspect-brk bin/
|
|
69
|
+
$ NODE_OPTIONS=--inspect-brk bin/dev force:apex:log:list -u myOrg@example.com
|
|
70
70
|
```
|
|
71
71
|
|
|
72
72
|
2. Set some breakpoints in your code.
|
|
73
73
|
3. Click on the Debug icon in the Activity Bar to open up the Debugger view.
|
|
74
74
|
4. In the upper left hand corner, set the launch configuration to `Attach to Remote`.
|
|
75
75
|
5. Click the green play button on the left of the debugger view. The debugger should now be suspended on the first line of the program.
|
|
76
|
-
6. Click the green play button in the mini toolbar to continue running the program.
|
|
77
|
-
<br /><br />
|
|
78
|
-
<img src="
|
|
76
|
+
6. Click the green play button in the mini toolbar to continue running the program.
|
|
77
|
+
<br /><br />
|
|
78
|
+
<img src="./.images/vscodeScreenshot.png" width="480" height="278">
|
|
79
79
|
|
|
80
80
|
<br />
|
|
81
81
|
Happy debugging!
|
|
82
|
+
|
|
83
|
+
<br /><br />
|
|
84
|
+
|
|
85
|
+
# Commands
|
|
86
|
+
|
|
87
|
+
<!-- commands -->
|
|
88
|
+
|
|
89
|
+
The available commands in the Apex plugin:
|
|
90
|
+
<br /><br />
|
|
91
|
+
|
|
92
|
+
### `sfdx force:apex:log:get`
|
|
93
|
+
|
|
94
|
+
fetch debug logs
|
|
95
|
+
|
|
96
|
+
```
|
|
97
|
+
USAGE
|
|
98
|
+
$ sfdx force:apex:log:get [-i <id>] [-n <number>] [-d <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel
|
|
99
|
+
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
100
|
+
|
|
101
|
+
OPTIONS
|
|
102
|
+
-d, --outputdir=outputdir
|
|
103
|
+
directory for saving the log files
|
|
104
|
+
|
|
105
|
+
-i, --logid=logid
|
|
106
|
+
id of the log to display
|
|
107
|
+
|
|
108
|
+
-n, --number=number
|
|
109
|
+
number of most recent logs to display
|
|
110
|
+
|
|
111
|
+
-u, --targetusername=targetusername
|
|
112
|
+
username or alias for the target org; overrides default target org
|
|
113
|
+
|
|
114
|
+
--apiversion=apiversion
|
|
115
|
+
override the api version used for api requests made by this command
|
|
116
|
+
|
|
117
|
+
--json
|
|
118
|
+
format output as JSON
|
|
119
|
+
|
|
120
|
+
--loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)
|
|
121
|
+
[default: warn] logging level for this command invocation
|
|
122
|
+
|
|
123
|
+
DESCRIPTION
|
|
124
|
+
Fetches the specified log or given number of most recent logs from the scratch
|
|
125
|
+
org.
|
|
126
|
+
To get the IDs for your debug logs, run "sfdx force:apex:log:list".
|
|
127
|
+
Use the --logid parameter to return a specific log.
|
|
128
|
+
Use the --number parameter to return the specified number of recent logs.
|
|
129
|
+
Use the --outputdir parameter to specify the directory to store the logs in.
|
|
130
|
+
Executing this command without parameters returns the most recent log.
|
|
131
|
+
|
|
132
|
+
EXAMPLES
|
|
133
|
+
$ sfdx force:apex:log:get -i <log id>
|
|
134
|
+
$ sfdx force:apex:log:get -i <log id> -u me@my.org
|
|
135
|
+
$ sfdx force:apex:log:get -n 2 -c
|
|
136
|
+
$ sfdx force:apex:log:get -d Users/Desktop/logs -n 2
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
_See code: [force/apex/log/get.ts](https://github.com/salesforcecli/plugin-apex/blob/main/src/commands/force/apex/log/get.ts)_
|
|
140
|
+
<br /><br />
|
|
141
|
+
|
|
142
|
+
### `sfdx force:apex:log:list`
|
|
143
|
+
|
|
144
|
+
display a list of IDs and general information about debug logs
|
|
145
|
+
|
|
146
|
+
```
|
|
147
|
+
USAGE
|
|
148
|
+
$ sfdx force:apex:log:list [-u <string>] [--apiversion <string>] [--json] [--loglevel
|
|
149
|
+
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
150
|
+
|
|
151
|
+
OPTIONS
|
|
152
|
+
-u, --targetusername=targetusername
|
|
153
|
+
username or alias for the target org; overrides default target org
|
|
154
|
+
|
|
155
|
+
--apiversion=apiversion
|
|
156
|
+
override the api version used for api requests made by this command
|
|
157
|
+
|
|
158
|
+
--json
|
|
159
|
+
format output as JSON
|
|
160
|
+
|
|
161
|
+
--loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)
|
|
162
|
+
[default: warn] logging level for this command invocation
|
|
163
|
+
|
|
164
|
+
DESCRIPTION
|
|
165
|
+
Run this command in a project to list the IDs and general information for all debug logs
|
|
166
|
+
in your default org.
|
|
167
|
+
To fetch a specific log from your org, obtain the ID from this command's output, then run
|
|
168
|
+
the “sfdx force:apex:log:get” command.
|
|
169
|
+
|
|
170
|
+
EXAMPLES
|
|
171
|
+
$ sfdx force:apex:log:list
|
|
172
|
+
$ sfdx force:apex:log:list -u me@my.org
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
_See code: [force/apex/log/list.ts](https://github.com/salesforcecli/plugin-apex/blob/main/src/commands/force/apex/log/list.ts)_
|
|
176
|
+
<br /><br />
|
|
177
|
+
|
|
178
|
+
### `sfdx force:apex:log:tail`
|
|
179
|
+
|
|
180
|
+
ensures logging is active and returns the logs to the running user
|
|
181
|
+
|
|
182
|
+
```
|
|
183
|
+
USAGE
|
|
184
|
+
$ sfdx force:apex:log:list [-u <string>] [--apiversion <string>] [--json] [--loglevel
|
|
185
|
+
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL] [-c] [-d <string>] [-s]
|
|
186
|
+
|
|
187
|
+
OPTIONS
|
|
188
|
+
-u, --targetusername=targetusername
|
|
189
|
+
username or alias for the target org; overrides default target org
|
|
190
|
+
|
|
191
|
+
--apiversion=apiversion
|
|
192
|
+
override the api version used for api requests made by this command
|
|
193
|
+
|
|
194
|
+
--json
|
|
195
|
+
format output as JSON
|
|
196
|
+
|
|
197
|
+
--loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)
|
|
198
|
+
[default: warn] logging level for this command invocation
|
|
199
|
+
|
|
200
|
+
-c, --color
|
|
201
|
+
colorize noteworthy log lines
|
|
202
|
+
|
|
203
|
+
-d, --debuglevel=debuglevel
|
|
204
|
+
debug level for trace flag
|
|
205
|
+
|
|
206
|
+
-s, --skiptraceflag
|
|
207
|
+
skip trace flag setup
|
|
208
|
+
|
|
209
|
+
DESCRIPTION
|
|
210
|
+
Activates debug logging and displays logs in the terminal. You can also pipe the logs to a file.
|
|
211
|
+
To exit logging early, type Ctrl+C into the terminal.
|
|
212
|
+
|
|
213
|
+
EXAMPLES
|
|
214
|
+
$ sfdx force:apex:log:tail
|
|
215
|
+
$ sfdx force:apex:log:tail --debuglevel MyDebugLevel
|
|
216
|
+
$ sfdx force:apex:log:tail -c -s
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
_See code: [force/apex/log/tail.ts](https://github.com/salesforcecli/plugin-apex/blob/main/src/commands/force/apex/log/tail.ts)_
|
|
220
|
+
<br /><br />
|
|
221
|
+
|
|
222
|
+
### `sfdx force:apex:execute`
|
|
223
|
+
|
|
224
|
+
executes anonymous Apex code
|
|
225
|
+
|
|
226
|
+
```
|
|
227
|
+
USAGE
|
|
228
|
+
$ sfdx force:apex:execute [-f <filepath>] [-u <string>] [--apiversion <string>] [--json]
|
|
229
|
+
[--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
230
|
+
|
|
231
|
+
OPTIONS
|
|
232
|
+
-f, --apexcodefile=apexcodefile
|
|
233
|
+
path to a local file that contains Apex code
|
|
234
|
+
|
|
235
|
+
-u, --targetusername=targetusername
|
|
236
|
+
username or alias for the target org; overrides default target org
|
|
237
|
+
|
|
238
|
+
--apiversion=apiversion
|
|
239
|
+
override the api version used for api requests made by this command
|
|
240
|
+
|
|
241
|
+
--json
|
|
242
|
+
format output as json
|
|
243
|
+
|
|
244
|
+
--loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)
|
|
245
|
+
[default: warn] logging level for this command invocation
|
|
246
|
+
|
|
247
|
+
DESCRIPTION
|
|
248
|
+
Executes one or more lines of anonymous Apex code entered on the command line, or executes
|
|
249
|
+
the code in a local file.
|
|
250
|
+
If you don’t run this command from within a Salesforce DX project, —-targetusername is
|
|
251
|
+
required.
|
|
252
|
+
To execute your code interactively, run this command with no parameters. At the prompt,
|
|
253
|
+
enter all your Apex code; press CTRL-D when you're finished. Your code is then executed in
|
|
254
|
+
a single execute anonymous request.
|
|
255
|
+
For more information, see "Anonymous Blocks" in the Apex Developer Guide.
|
|
256
|
+
|
|
257
|
+
EXAMPLES
|
|
258
|
+
$ sfdx force:apex:execute -u testusername@salesforce.org -f ~/test.apex
|
|
259
|
+
$ sfdx force:apex:execute -f ~/test.apex
|
|
260
|
+
$ sfdx force:apex:execute
|
|
261
|
+
Start typing Apex code. Press the Enter key after each line, then press CTRL+D when
|
|
262
|
+
finished.
|
|
263
|
+
```
|
|
264
|
+
|
|
265
|
+
_See code: [force/apex/execute.ts](https://github.com/salesforcecli/plugin-apex/blob/main/src/commands/force/apex/execute.ts)_
|
|
266
|
+
<br /><br />
|
|
267
|
+
|
|
268
|
+
### `sfdx force:apex:test:run`
|
|
269
|
+
|
|
270
|
+
invoke Apex tests
|
|
271
|
+
|
|
272
|
+
```
|
|
273
|
+
USAGE
|
|
274
|
+
$ sfdx force:apex:test:run [-d <string>] [-l RunLocalTests|RunAllTestsInOrg|RunSpecifiedTests] [-n <string>] [-r human|tap|junit|json]
|
|
275
|
+
[-s <string>] [-t <string>] [-w <string>] [-y] [-v -c] [-u <string>] [--apiversion <string>] [--verbose] [--json]
|
|
276
|
+
[--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
277
|
+
|
|
278
|
+
OPTIONS
|
|
279
|
+
-c, --codecoverage
|
|
280
|
+
runs code coverage and retrieves results
|
|
281
|
+
|
|
282
|
+
-d, --outputdir=outputdir
|
|
283
|
+
directory to store test run files
|
|
284
|
+
|
|
285
|
+
-l, --testlevel=(RunLocalTests|RunAllTestsInOrg|RunSpecifiedTests)
|
|
286
|
+
specifies which tests to run, using one of these TestLevel enum values:
|
|
287
|
+
RunSpecifiedTests—Only the tests that you specify are run.
|
|
288
|
+
RunLocalTests—All tests in your org are run, except the ones that originate from
|
|
289
|
+
installed managed packages.
|
|
290
|
+
RunAllTestsInOrg—All tests are in your org and in installed managed packages are run
|
|
291
|
+
|
|
292
|
+
-n, --classnames=classnames
|
|
293
|
+
comma-separated list of Apex test class names to run; if you select --classnames, you
|
|
294
|
+
can't specify --suitenames or --tests
|
|
295
|
+
|
|
296
|
+
-r, --resultformat=(human|tap|junit|json)
|
|
297
|
+
Permissible values are: human, tap, junit, json
|
|
298
|
+
|
|
299
|
+
-s, --suitenames=suitenames
|
|
300
|
+
comma-separated list of Apex test suite names to run; if you select --suitenames, you
|
|
301
|
+
can't specify --classnames or --tests
|
|
302
|
+
|
|
303
|
+
-t, --tests=tests
|
|
304
|
+
comma-separated list of Apex test class names or IDs and, if applicable, test methods to
|
|
305
|
+
run; if you specify --tests, you can't specify --classnames or --suitenames
|
|
306
|
+
|
|
307
|
+
-u, --targetusername=targetusername
|
|
308
|
+
username or alias for the target org; overrides default target org
|
|
309
|
+
|
|
310
|
+
-v, --detailedcoverage
|
|
311
|
+
display detailed code coverage per test
|
|
312
|
+
|
|
313
|
+
-w, --wait=wait
|
|
314
|
+
sets the streaming client socket timeout in minutes; specify a longer wait time if timeouts occur
|
|
315
|
+
frequently
|
|
316
|
+
|
|
317
|
+
-y, --synchronous
|
|
318
|
+
runs test methods from a single Apex class synchronously; if not specified, tests are
|
|
319
|
+
run ansynchronously
|
|
320
|
+
|
|
321
|
+
--apiversion=apiversion
|
|
322
|
+
override the api version used for api requests made by this command
|
|
323
|
+
|
|
324
|
+
--json
|
|
325
|
+
format output as JSON
|
|
326
|
+
|
|
327
|
+
--loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)
|
|
328
|
+
[default: warn] [default: warn] logging level for this command invocation; logs are
|
|
329
|
+
stored in $HOME/.sfdx/sfdx.log
|
|
330
|
+
|
|
331
|
+
--verbose
|
|
332
|
+
display Apex test processing details; if JSON is specified, processing details aren't
|
|
333
|
+
displayed
|
|
334
|
+
|
|
335
|
+
DESCRIPTION
|
|
336
|
+
Specify which tests to run by using the --classnames, --suites, or --tests parameters.
|
|
337
|
+
Alternatively, use the --testlevel parameter to run all the tests in your org, local
|
|
338
|
+
tests, or specified tests.
|
|
339
|
+
To see code coverage results, use the --codecoverage parameter with --resultformat. The
|
|
340
|
+
output displays a high-level summary of the test run and the code coverage values for
|
|
341
|
+
classes in your org. If you specify human-readable result format, use the
|
|
342
|
+
--detailedcoverage parameter to see detailed coverage results for each test method run.
|
|
343
|
+
If --codecoverage is not included, code coverage will be skipped during the test run.
|
|
344
|
+
|
|
345
|
+
NOTE: The testRunCoverage value (JSON and JUnit result formats) is a percentage of the
|
|
346
|
+
covered lines and total lines from all the Apex classes evaluated by the tests in this
|
|
347
|
+
run.
|
|
348
|
+
|
|
349
|
+
EXAMPLES
|
|
350
|
+
$ sfdx force:apex:test:run
|
|
351
|
+
$ sfdx force:apex:test:run -n "MyClassTest,MyOtherClassTest" -r human
|
|
352
|
+
$ sfdx force:apex:test:run -s "MySuite,MyOtherSuite" -c -v --json
|
|
353
|
+
$ sfdx force:apex:test:run -t
|
|
354
|
+
"MyClassTest.testCoolFeature,MyClassTest.testAwesomeFeature,AnotherClassTest,namespace.TheirClassTest.testThis" -r human
|
|
355
|
+
$ sfdx force:apex:test:run -l RunLocalTests -d <path to outputdir> -u me@my.org
|
|
356
|
+
```
|
|
357
|
+
|
|
358
|
+
_See code: [force/apex/test/run.ts](https://github.com/salesforcecli/plugin-apex/blob/main/src/commands/force/apex/test/run.ts)_
|
|
359
|
+
<br /><br />
|
|
360
|
+
|
|
361
|
+
### `sfdx force:apex:test:report`
|
|
362
|
+
|
|
363
|
+
display test results for a specific asynchronous test run
|
|
364
|
+
|
|
365
|
+
```
|
|
366
|
+
USAGE
|
|
367
|
+
$ sfdx force:apex:test:report -i <string> [-c] [-d <string>] [-r human|tap|junit|json] [-w <string>]
|
|
368
|
+
[-u <string>] [--apiversion <string>] [--verbose] [--json] [--loglevel
|
|
369
|
+
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
370
|
+
|
|
371
|
+
OPTIONS
|
|
372
|
+
-c, --codecoverage
|
|
373
|
+
retrieves code coverage results
|
|
374
|
+
|
|
375
|
+
-d, --outputdir=outputdir
|
|
376
|
+
directory to store test result files
|
|
377
|
+
|
|
378
|
+
-i, --testrunid=testrunid
|
|
379
|
+
(required) the ID of the test run
|
|
380
|
+
|
|
381
|
+
-r, --resultformat=(human|tap|junit|json)
|
|
382
|
+
Permissible values are: human, tap, junit, json
|
|
383
|
+
|
|
384
|
+
-u, --targetusername=targetusername
|
|
385
|
+
username or alias for the target org; overrides default target org
|
|
386
|
+
|
|
387
|
+
-w, --wait=wait
|
|
388
|
+
sets the streaming client socket timeout in minutes; specify a longer wait time if timeouts occur
|
|
389
|
+
frequently
|
|
390
|
+
|
|
391
|
+
--apiversion=apiversion
|
|
392
|
+
override the api version used for api requests made by this command
|
|
393
|
+
|
|
394
|
+
--json
|
|
395
|
+
format output as JSON
|
|
396
|
+
|
|
397
|
+
--loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)
|
|
398
|
+
[default: warn] [default: warn] logging level for this command invocation; logs are
|
|
399
|
+
stored in $HOME/.sfdx/sfdx.log
|
|
400
|
+
|
|
401
|
+
--verbose
|
|
402
|
+
display Apex test processing details; if JSON is specified, processing details aren't
|
|
403
|
+
displayed
|
|
404
|
+
|
|
405
|
+
DESCRIPTION
|
|
406
|
+
Provide a test run ID to display test results for an enqueued or completed asynchronous
|
|
407
|
+
test run. The test run ID is displayed after running the "sfdx force:apex:test:run"
|
|
408
|
+
command.
|
|
409
|
+
|
|
410
|
+
EXAMPLES
|
|
411
|
+
$ sfdx force:apex:test:report -i <test run id>
|
|
412
|
+
$ sfdx force:apex:test:report -i <test run id> -r junit
|
|
413
|
+
$ sfdx force:apex:test:report -i <test run id> -c --json
|
|
414
|
+
$ sfdx force:apex:test:report -i <test run id> -c -d <path to outputdir> -u me@myorg
|
|
415
|
+
```
|
|
416
|
+
|
|
417
|
+
_See code: [force/apex/test/report.ts](https://github.com/salesforcecli/plugin-apex/blob/main/src/commands/force/apex/test/report.ts)_
|
|
418
|
+
|
|
419
|
+
<!-- commandsstop -->
|
package/bin/dev
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const oclif = require('@oclif/core');
|
|
4
|
+
|
|
5
|
+
const path = require('path');
|
|
6
|
+
const project = path.join(__dirname, '..', 'tsconfig.json');
|
|
7
|
+
|
|
8
|
+
// In dev mode -> use ts-node and dev plugins
|
|
9
|
+
process.env.NODE_ENV = 'development';
|
|
10
|
+
|
|
11
|
+
// Enable SWC for faster typescript compiling
|
|
12
|
+
require('ts-node').register({ project, swc: true });
|
|
13
|
+
|
|
14
|
+
// In dev mode, always show stack traces
|
|
15
|
+
const g = (global.oclif = global.oclif || {});
|
|
16
|
+
|
|
17
|
+
// In dev mode, always show stack traces
|
|
18
|
+
global.oclif.debug = true;
|
|
19
|
+
|
|
20
|
+
// Start the CLI
|
|
21
|
+
oclif.run().then(require('@oclif/core/flush')).catch(require('@oclif/core/handle'));
|
package/bin/dev.cmd
ADDED
package/bin/run
CHANGED
package/bin/run.cmd
CHANGED
|
@@ -19,7 +19,7 @@ const messages = core_1.Messages.load('@salesforce/plugin-apex', 'execute', [
|
|
|
19
19
|
'executeRuntimeSuccess',
|
|
20
20
|
'logLevelDescription',
|
|
21
21
|
'logLevelLongDescription',
|
|
22
|
-
'longDescription'
|
|
22
|
+
'longDescription',
|
|
23
23
|
]);
|
|
24
24
|
class Execute extends command_1.SfdxCommand {
|
|
25
25
|
run() {
|
|
@@ -31,9 +31,7 @@ class Execute extends command_1.SfdxCommand {
|
|
|
31
31
|
}
|
|
32
32
|
const conn = this.org.getConnection();
|
|
33
33
|
const exec = new apex_node_1.ExecuteService(conn);
|
|
34
|
-
const execAnonOptions = Object.assign({}, (this.flags.apexcodefile
|
|
35
|
-
? { apexFilePath: this.flags.apexcodefile }
|
|
36
|
-
: { userInput: true }));
|
|
34
|
+
const execAnonOptions = Object.assign({}, (this.flags.apexcodefile ? { apexFilePath: this.flags.apexcodefile } : { userInput: true }));
|
|
37
35
|
const result = yield exec.executeAnonymous(execAnonOptions);
|
|
38
36
|
this.ux.log(this.formatDefault(result));
|
|
39
37
|
return this.formatJson(result);
|
|
@@ -76,15 +74,11 @@ class Execute extends command_1.SfdxCommand {
|
|
|
76
74
|
success: response.success,
|
|
77
75
|
compiled: response.compiled,
|
|
78
76
|
compileProblem: diagnostic ? response.diagnostic[0].compileProblem : '',
|
|
79
|
-
exceptionMessage: diagnostic
|
|
80
|
-
|
|
81
|
-
: '',
|
|
82
|
-
exceptionStackTrace: diagnostic
|
|
83
|
-
? response.diagnostic[0].exceptionStackTrace
|
|
84
|
-
: '',
|
|
77
|
+
exceptionMessage: diagnostic ? response.diagnostic[0].exceptionMessage : '',
|
|
78
|
+
exceptionStackTrace: diagnostic ? response.diagnostic[0].exceptionStackTrace : '',
|
|
85
79
|
line: diagnostic ? response.diagnostic[0].lineNumber : -1,
|
|
86
80
|
column: diagnostic ? response.diagnostic[0].columnNumber : -1,
|
|
87
|
-
logs: response.logs
|
|
81
|
+
logs: response.logs,
|
|
88
82
|
};
|
|
89
83
|
/* eslint-emable @typescript-eslint/no-non-null-assertion */
|
|
90
84
|
return formattedResponse;
|
|
@@ -94,22 +88,22 @@ exports.default = Execute;
|
|
|
94
88
|
Execute.description = (0, utils_1.buildDescription)(messages.getMessage('commandDescription'), messages.getMessage('longDescription'));
|
|
95
89
|
Execute.longDescription = messages.getMessage('longDescription');
|
|
96
90
|
Execute.examples = [
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
91
|
+
'$ sfdx force:apex:execute -u testusername@salesforce.org -f ~/test.apex',
|
|
92
|
+
'$ sfdx force:apex:execute -f ~/test.apex',
|
|
93
|
+
'$ sfdx force:apex:execute \nStart typing Apex code. Press the Enter key after each line, then press CTRL+D when finished.',
|
|
100
94
|
];
|
|
101
95
|
Execute.requiresUsername = true;
|
|
102
96
|
Execute.flagsConfig = {
|
|
103
97
|
apexcodefile: command_1.flags.filepath({
|
|
104
98
|
char: 'f',
|
|
105
|
-
description: messages.getMessage('apexCodeFileDescription')
|
|
99
|
+
description: messages.getMessage('apexCodeFileDescription'),
|
|
106
100
|
}),
|
|
107
101
|
loglevel: command_1.flags.enum({
|
|
108
102
|
description: messages.getMessage('logLevelDescription'),
|
|
109
103
|
longDescription: messages.getMessage('logLevelLongDescription'),
|
|
110
104
|
default: 'warn',
|
|
111
|
-
options: utils_1.logLevels
|
|
105
|
+
options: utils_1.logLevels,
|
|
112
106
|
}),
|
|
113
|
-
apiversion: command_1.flags.builtin()
|
|
107
|
+
apiversion: command_1.flags.builtin(),
|
|
114
108
|
};
|
|
115
109
|
//# sourceMappingURL=execute.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execute.js","sourceRoot":"","sources":["../../../../src/commands/force/apex/execute.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,
|
|
1
|
+
{"version":3,"file":"execute.js","sourceRoot":"","sources":["../../../../src/commands/force/apex/execute.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,qDAAqG;AACrG,iDAAyD;AACzD,2CAA4C;AAE5C,0CAAuF;AAEvF,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,IAAI,CAAC,yBAAyB,EAAE,SAAS,EAAE;IACnE,yBAAyB;IACzB,oBAAoB;IACpB,uBAAuB;IACvB,uBAAuB;IACvB,qBAAqB;IACrB,yBAAyB;IACzB,iBAAiB;CAClB,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
|
@@ -22,7 +22,7 @@ const messages = core_1.Messages.load('@salesforce/plugin-apex', 'get', [
|
|
|
22
22
|
'noResultsFound',
|
|
23
23
|
'numberDescription',
|
|
24
24
|
'outputDirDescription',
|
|
25
|
-
'outputDirLongDescription'
|
|
25
|
+
'outputDirLongDescription',
|
|
26
26
|
]);
|
|
27
27
|
class Get extends command_1.SfdxCommand {
|
|
28
28
|
run() {
|
|
@@ -40,7 +40,7 @@ class Get extends command_1.SfdxCommand {
|
|
|
40
40
|
const logResults = yield logService.getLogs({
|
|
41
41
|
logId: this.flags.logid,
|
|
42
42
|
numberOfLogs: this.flags.number,
|
|
43
|
-
outputDir: this.flags.outputdir
|
|
43
|
+
outputDir: this.flags.outputdir,
|
|
44
44
|
});
|
|
45
45
|
if (logResults.length === 0) {
|
|
46
46
|
this.ux.log(messages.getMessage('noResultsFound'));
|
|
@@ -48,9 +48,9 @@ class Get extends command_1.SfdxCommand {
|
|
|
48
48
|
}
|
|
49
49
|
if (this.flags.outputdir) {
|
|
50
50
|
this.ux.log(`Log files written to ${this.flags.outputdir}`);
|
|
51
|
-
return logResults.map(logResult => logResult.log);
|
|
51
|
+
return logResults.map((logResult) => logResult.log);
|
|
52
52
|
}
|
|
53
|
-
const parsedLogs = logResults.map(logResult => {
|
|
53
|
+
const parsedLogs = logResults.map((logResult) => {
|
|
54
54
|
const colored = (0, utils_1.colorLogs)(logResult.log);
|
|
55
55
|
this.ux.log(colored);
|
|
56
56
|
return { log: logResult.log };
|
|
@@ -68,36 +68,36 @@ Get.requiresUsername = true;
|
|
|
68
68
|
Get.description = (0, utils_1.buildDescription)(messages.getMessage('commandDescription'), messages.getMessage('longDescription'));
|
|
69
69
|
Get.longDescription = messages.getMessage('longDescription');
|
|
70
70
|
Get.examples = [
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
71
|
+
'$ sfdx force:apex:log:get -i <log id>',
|
|
72
|
+
'$ sfdx force:apex:log:get -i <log id> -u me@my.org',
|
|
73
|
+
'$ sfdx force:apex:log:get -n 2 -c',
|
|
74
|
+
'$ sfdx force:apex:log:get -d Users/Desktop/logs -n 2',
|
|
75
75
|
];
|
|
76
76
|
Get.flagsConfig = {
|
|
77
77
|
json: command_1.flags.boolean({
|
|
78
|
-
description: messages.getMessage('jsonDescription')
|
|
78
|
+
description: messages.getMessage('jsonDescription'),
|
|
79
79
|
}),
|
|
80
80
|
loglevel: command_1.flags.enum({
|
|
81
81
|
description: messages.getMessage('logLevelDescription'),
|
|
82
82
|
longDescription: messages.getMessage('logLevelLongDescription'),
|
|
83
83
|
default: 'warn',
|
|
84
|
-
options: utils_1.logLevels
|
|
84
|
+
options: utils_1.logLevels,
|
|
85
85
|
}),
|
|
86
86
|
apiversion: command_1.flags.builtin(),
|
|
87
87
|
logid: command_1.flags.id({
|
|
88
88
|
char: 'i',
|
|
89
|
-
description: messages.getMessage('logIDDescription')
|
|
89
|
+
description: messages.getMessage('logIDDescription'),
|
|
90
90
|
}),
|
|
91
91
|
number: command_1.flags.number({
|
|
92
92
|
char: 'n',
|
|
93
93
|
min: 1,
|
|
94
94
|
max: 25,
|
|
95
|
-
description: messages.getMessage('numberDescription')
|
|
95
|
+
description: messages.getMessage('numberDescription'),
|
|
96
96
|
}),
|
|
97
97
|
outputdir: command_1.flags.string({
|
|
98
98
|
char: 'd',
|
|
99
99
|
description: messages.getMessage('outputDirDescription'),
|
|
100
|
-
longDescription: messages.getMessage('outputDirLongDescription')
|
|
101
|
-
})
|
|
100
|
+
longDescription: messages.getMessage('outputDirLongDescription'),
|
|
101
|
+
}),
|
|
102
102
|
};
|
|
103
103
|
//# sourceMappingURL=get.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get.js","sourceRoot":"","sources":["../../../../../src/commands/force/apex/log/get.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,qDAAmD;AACnD,iDAAyD;AACzD,2CAA4C;AAE5C,6CAA2E;AAE3E,eAAQ,CAAC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