@salesforce/plugin-apex 3.4.10 → 3.5.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/README.md CHANGED
@@ -148,7 +148,7 @@ FLAG DESCRIPTIONS
148
148
  directory.
149
149
  ```
150
150
 
151
- _See code: [src/commands/apex/get/log.ts](https://github.com/salesforcecli/plugin-apex/blob/3.4.10/src/commands/apex/get/log.ts)_
151
+ _See code: [src/commands/apex/get/log.ts](https://github.com/salesforcecli/plugin-apex/blob/3.5.1/src/commands/apex/get/log.ts)_
152
152
 
153
153
  ## `sf apex get test`
154
154
 
@@ -156,8 +156,8 @@ Display test results for a specific asynchronous test run.
156
156
 
157
157
  ```
158
158
  USAGE
159
- $ sf apex get test -o <value> -i <value> [--json] [--flags-dir <value>] [--api-version <value>] [-c] [-d <value>]
160
- [-r human|tap|junit|json] [--concise]
159
+ $ sf apex get test -o <value> -i <value> [--json] [--flags-dir <value>] [--api-version <value>]
160
+ [--detailed-coverage -c] [-d <value>] [-r human|tap|junit|json] [--concise]
161
161
 
162
162
  FLAGS
163
163
  -c, --code-coverage Retrieve code coverage results.
@@ -169,6 +169,7 @@ FLAGS
169
169
  <options: human|tap|junit|json>
170
170
  --api-version=<value> Override the api version used for api requests made by this command
171
171
  --concise Display only failed test results; works with human-readable output only.
172
+ --detailed-coverage Display detailed code coverage per test.
172
173
 
173
174
  GLOBAL FLAGS
174
175
  --flags-dir=<value> Import flag values from a directory.
@@ -180,6 +181,10 @@ DESCRIPTION
180
181
  Provide a test run ID to display test results for an enqueued or completed asynchronous test run. The test run ID is
181
182
  displayed after running the "sf apex test run" command.
182
183
 
184
+ To see code coverage results, use the --code-coverage flag with --result-format. The output displays a high-level
185
+ summary of the test run and the code coverage values for classes in your org. If you specify human-readable result
186
+ format, use the --detailed-coverage flag to see detailed coverage results for each test method run.
187
+
183
188
  ALIASES
184
189
  $ sf force apex test report
185
190
 
@@ -203,7 +208,7 @@ EXAMPLES
203
208
  me@myorg'
204
209
  ```
205
210
 
206
- _See code: [src/commands/apex/get/test.ts](https://github.com/salesforcecli/plugin-apex/blob/3.4.10/src/commands/apex/get/test.ts)_
211
+ _See code: [src/commands/apex/get/test.ts](https://github.com/salesforcecli/plugin-apex/blob/3.5.1/src/commands/apex/get/test.ts)_
207
212
 
208
213
  ## `sf apex list log`
209
214
 
@@ -243,7 +248,7 @@ EXAMPLES
243
248
  $ sf apex list log --target-org me@my.org
244
249
  ```
245
250
 
246
- _See code: [src/commands/apex/list/log.ts](https://github.com/salesforcecli/plugin-apex/blob/3.4.10/src/commands/apex/list/log.ts)_
251
+ _See code: [src/commands/apex/list/log.ts](https://github.com/salesforcecli/plugin-apex/blob/3.5.1/src/commands/apex/list/log.ts)_
247
252
 
248
253
  ## `sf apex run`
249
254
 
@@ -290,7 +295,7 @@ EXAMPLES
290
295
  $ sf apex run
291
296
  ```
292
297
 
293
- _See code: [src/commands/apex/run.ts](https://github.com/salesforcecli/plugin-apex/blob/3.4.10/src/commands/apex/run.ts)_
298
+ _See code: [src/commands/apex/run.ts](https://github.com/salesforcecli/plugin-apex/blob/3.5.1/src/commands/apex/run.ts)_
294
299
 
295
300
  ## `sf apex run test`
296
301
 
@@ -430,7 +435,7 @@ FLAG DESCRIPTIONS
430
435
  --tests Test1 --tests Test2
431
436
  ```
432
437
 
433
- _See code: [src/commands/apex/run/test.ts](https://github.com/salesforcecli/plugin-apex/blob/3.4.10/src/commands/apex/run/test.ts)_
438
+ _See code: [src/commands/apex/run/test.ts](https://github.com/salesforcecli/plugin-apex/blob/3.5.1/src/commands/apex/run/test.ts)_
434
439
 
435
440
  ## `sf apex tail log`
436
441
 
@@ -473,6 +478,6 @@ EXAMPLES
473
478
  $ sf apex tail log --color --skip-trace-flag
474
479
  ```
475
480
 
476
- _See code: [src/commands/apex/tail/log.ts](https://github.com/salesforcecli/plugin-apex/blob/3.4.10/src/commands/apex/tail/log.ts)_
481
+ _See code: [src/commands/apex/tail/log.ts](https://github.com/salesforcecli/plugin-apex/blob/3.5.1/src/commands/apex/tail/log.ts)_
477
482
 
478
483
  <!-- commandsstop -->
@@ -12,6 +12,7 @@ export default class Test extends SfCommand<RunResult> {
12
12
  loglevel: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
13
13
  'test-run-id': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
14
14
  'code-coverage': import("@oclif/core/interfaces").BooleanFlag<boolean>;
15
+ 'detailed-coverage': import("@oclif/core/interfaces").BooleanFlag<boolean>;
15
16
  'output-dir': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
16
17
  'result-format': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
17
18
  concise: import("@oclif/core/interfaces").BooleanFlag<boolean>;
@@ -31,6 +31,10 @@ export default class Test extends SfCommand {
31
31
  length: 'both',
32
32
  }),
33
33
  'code-coverage': codeCoverageFlag,
34
+ 'detailed-coverage': Flags.boolean({
35
+ summary: messages.getMessage('flags.detailed-coverage.summary'),
36
+ dependsOn: ['code-coverage'],
37
+ }),
34
38
  'output-dir': Flags.directory({
35
39
  aliases: ['outputdir', 'output-directory'],
36
40
  deprecateAliases: true,
@@ -53,6 +57,7 @@ export default class Test extends SfCommand {
53
57
  'result-format': flags['result-format'],
54
58
  json: flags.json,
55
59
  'code-coverage': flags['code-coverage'],
60
+ 'detailed-coverage': flags['detailed-coverage'],
56
61
  concise: flags.concise,
57
62
  });
58
63
  }
@@ -1 +1 @@
1
- {"version":3,"file":"test.js","sourceRoot":"","sources":["../../../../src/commands/apex/get/test.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EACL,KAAK,EACL,QAAQ,EACR,iCAAiC,EACjC,+BAA+B,EAC/B,SAAS,EACT,EAAE,GACH,MAAM,6B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C,mBAAmB,CAAC;YAC/C,OAAO,EAAE,KAAK,CAAC,OAAO;SACvB,CAAC,CAAC;IACL,CAAC"}
@@ -6,6 +6,8 @@ Display test results for a specific asynchronous test run.
6
6
 
7
7
  Provide a test run ID to display test results for an enqueued or completed asynchronous test run. The test run ID is displayed after running the "<%= config.bin %> apex test run" command.
8
8
 
9
+ 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 classes 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.
10
+
9
11
  # examples
10
12
 
11
13
  - Display test results for your default org using a test run ID:
@@ -39,3 +41,7 @@ Display only failed test results; works with human-readable output only.
39
41
  # apexLibErr
40
42
 
41
43
  Unknown error in Apex Library: %s
44
+
45
+ # flags.detailed-coverage.summary
46
+
47
+ Display detailed code coverage per test.
@@ -264,7 +264,7 @@
264
264
  ],
265
265
  "args": {},
266
266
  "deprecateAliases": true,
267
- "description": "Provide a test run ID to display test results for an enqueued or completed asynchronous test run. The test run ID is displayed after running the \"<%= config.bin %> apex test run\" command.",
267
+ "description": "Provide a test run ID to display test results for an enqueued or completed asynchronous test run. The test run ID is displayed after running the \"<%= config.bin %> apex test run\" command.\n\nTo 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 classes 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.",
268
268
  "examples": [
269
269
  "Display test results for your default org using a test run ID:\n<%= config.bin %> <%= command.id %> --test-run-id <test run id>",
270
270
  "Similar to previous example, but output the result in JUnit format:\n<%= config.bin %> <%= command.id %> --test-run-id <test run id> --result-format junit",
@@ -347,6 +347,15 @@
347
347
  "allowNo": false,
348
348
  "type": "boolean"
349
349
  },
350
+ "detailed-coverage": {
351
+ "dependsOn": [
352
+ "code-coverage"
353
+ ],
354
+ "name": "detailed-coverage",
355
+ "summary": "Display detailed code coverage per test.",
356
+ "allowNo": false,
357
+ "type": "boolean"
358
+ },
350
359
  "output-dir": {
351
360
  "aliases": [
352
361
  "outputdir",
@@ -969,5 +978,5 @@
969
978
  ]
970
979
  }
971
980
  },
972
- "version": "3.4.10"
981
+ "version": "3.5.1"
973
982
  }
package/package.json CHANGED
@@ -1,26 +1,26 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-apex",
3
3
  "description": "Apex commands",
4
- "version": "3.4.10",
4
+ "version": "3.5.1",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/forcedotcom/cli/issues",
7
7
  "dependencies": {
8
- "@salesforce/apex-node": "^8.1.9",
8
+ "@salesforce/apex-node": "^8.1.11",
9
9
  "@salesforce/core": "^8.5.1",
10
10
  "@salesforce/kit": "^3.2.2",
11
11
  "@salesforce/sf-plugins-core": "^11.3.7",
12
12
  "ansis": "^3.3.1"
13
13
  },
14
14
  "devDependencies": {
15
- "@oclif/core": "^4.0.21",
16
- "@oclif/plugin-command-snapshot": "^5.2.15",
17
- "@salesforce/cli-plugins-testkit": "^5.3.32",
15
+ "@oclif/core": "^4.0.23",
16
+ "@oclif/plugin-command-snapshot": "^5.2.16",
17
+ "@salesforce/cli-plugins-testkit": "^5.3.33",
18
18
  "@salesforce/dev-scripts": "^10.2.10",
19
- "@salesforce/plugin-command-reference": "^3.1.17",
20
- "eslint-plugin-sf-plugin": "^1.20.7",
21
- "oclif": "^4.14.32",
19
+ "@salesforce/plugin-command-reference": "^3.1.26",
20
+ "eslint-plugin-sf-plugin": "^1.20.8",
21
+ "oclif": "^4.14.34",
22
22
  "ts-node": "^10.9.2",
23
- "typescript": "^5.5.4"
23
+ "typescript": "^5.6.2"
24
24
  },
25
25
  "engines": {
26
26
  "node": ">=18.0.0"
@@ -217,7 +217,7 @@
217
217
  "exports": "./lib/index.js",
218
218
  "type": "module",
219
219
  "sfdx": {
220
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-apex/3.4.10.crt",
221
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-apex/3.4.10.sig"
220
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-apex/3.5.1.crt",
221
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-apex/3.5.1.sig"
222
222
  }
223
223
  }