Skip to content

Commit fc7e2c1

Browse files
committed
chore(release): 3.2.1 [skip ci]
1 parent 2adf42e commit fc7e2c1

File tree

3 files changed

+48
-11
lines changed

3 files changed

+48
-11
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## [3.2.1](https://github.com/salesforcecli/plugin-apex/compare/3.2.0...3.2.1) (2024-06-27)
2+
3+
### Bug Fixes
4+
5+
- added examples to apex run and apex get ([fb56783](https://github.com/salesforcecli/plugin-apex/commit/fb5678372f63008b2089799f30ac2c1f9158c802))
6+
17
# [3.2.0](https://github.com/salesforcecli/plugin-apex/compare/3.1.22...3.2.0) (2024-06-18)
28

39
### Features

README.md

Lines changed: 41 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ FLAG DESCRIPTIONS
148148
directory.
149149
```
150150

151-
_See code: [src/commands/apex/get/log.ts](https://github.com/salesforcecli/plugin-apex/blob/3.2.0/src/commands/apex/get/log.ts)_
151+
_See code: [src/commands/apex/get/log.ts](https://github.com/salesforcecli/plugin-apex/blob/3.2.1/src/commands/apex/get/log.ts)_
152152

153153
## `sf apex get test`
154154

@@ -199,10 +199,10 @@ EXAMPLES
199199
default org):
200200
201201
$ sf apex get test --test-run-id <test run id> --code-coverage --output-dir <path to outputdir> --target-org \
202-
me@myorg',
202+
me@myorg'
203203
```
204204

205-
_See code: [src/commands/apex/get/test.ts](https://github.com/salesforcecli/plugin-apex/blob/3.2.0/src/commands/apex/get/test.ts)_
205+
_See code: [src/commands/apex/get/test.ts](https://github.com/salesforcecli/plugin-apex/blob/3.2.1/src/commands/apex/get/test.ts)_
206206

207207
## `sf apex list log`
208208

@@ -242,7 +242,7 @@ EXAMPLES
242242
$ sf apex list log --target-org me@my.org
243243
```
244244

245-
_See code: [src/commands/apex/list/log.ts](https://github.com/salesforcecli/plugin-apex/blob/3.2.0/src/commands/apex/list/log.ts)_
245+
_See code: [src/commands/apex/list/log.ts](https://github.com/salesforcecli/plugin-apex/blob/3.2.1/src/commands/apex/list/log.ts)_
246246

247247
## `sf apex run`
248248

@@ -289,7 +289,7 @@ EXAMPLES
289289
$ sf apex run
290290
```
291291

292-
_See code: [src/commands/apex/run.ts](https://github.com/salesforcecli/plugin-apex/blob/3.2.0/src/commands/apex/run.ts)_
292+
_See code: [src/commands/apex/run.ts](https://github.com/salesforcecli/plugin-apex/blob/3.2.1/src/commands/apex/run.ts)_
293293

294294
## `sf apex run test`
295295

@@ -369,14 +369,45 @@ EXAMPLES
369369
370370
$ sf apex run test --test-level RunLocalTests --output-dir <path to outputdir> --target-org me@my.org
371371
372+
Run all tests in the org asynchronously:
373+
374+
$ sf apex run test --target-org myscratch
375+
376+
Run all tests synchronously; the command waits to display the test results until all tests finish:
377+
378+
$ sf apex run test --synchronous
379+
380+
Run specific tests using the --test-level flag:
381+
382+
$ sf apex run test --test-level RunLocalTests
383+
384+
Run Apex tests on all the methods in the specified class; output results in Test Anything Protocol (TAP) format and
385+
request code coverage results:
386+
387+
$ sf apex run test --class-names TestA --class-names TestB --result-format tap --code-coverage
388+
389+
Run Apex tests on methods specified using the standard Class.method notation; if you specify a test class without a
390+
method, the command runs all methods in the class:
391+
392+
$ sf apex run test --tests TestA.excitingMethod --tests TestA.boringMethod --tests TestB
393+
394+
Run Apex tests on methods specified using the standard Class.method notation with a namespace:
395+
396+
$ sf apex run test --tests ns.TestA.excitingMethod --tests ns.TestA.boringMethod --tests ns.TestB
397+
372398
FLAG DESCRIPTIONS
373399
-l, --test-level=RunLocalTests|RunAllTestsInOrg|RunSpecifiedTests Level of tests to run; default is RunLocalTests.
374400
375401
Here's what the levels mean:
376402
377-
- RunSpecifiedTests — Only the tests that you specify are run.
378-
- RunLocalTests — All tests in your org are run, except the ones that originate from installed managed packages.
379-
- RunAllTestsInOrg — All tests are in your org and in installed managed packages are run
403+
- RunSpecifiedTests — Only the tests that you specify in the runTests option are run. Code coverage requirements
404+
differ from the default coverage requirements when using this test level. The executed tests must cover each class
405+
and trigger in the deployment package for a minimum of 75% code coverage. This coverage is computed for each class
406+
and triggers individually, and is different than the overall coverage percentage.
407+
- RunLocalTests — All local tests in your org, including tests that originate from no-namespaced unlocked packages,
408+
are run. The tests that originate from installed managed packages and namespaced unlocked packages aren't run. This
409+
test level is the default for production deployments that include Apex classes or triggers.
410+
- RunAllTestsInOrg — All tests are run. The tests include all tests in your org.
380411
381412
-n, --class-names=<value>... Apex test class names to run; default is all classes.
382413
@@ -399,7 +430,7 @@ FLAG DESCRIPTIONS
399430
--tests Test1 --tests Test2
400431
```
401432

402-
_See code: [src/commands/apex/run/test.ts](https://github.com/salesforcecli/plugin-apex/blob/3.2.0/src/commands/apex/run/test.ts)_
433+
_See code: [src/commands/apex/run/test.ts](https://github.com/salesforcecli/plugin-apex/blob/3.2.1/src/commands/apex/run/test.ts)_
403434

404435
## `sf apex tail log`
405436

@@ -442,6 +473,6 @@ EXAMPLES
442473
$ sf apex tail log --color --skip-trace-flag
443474
```
444475

445-
_See code: [src/commands/apex/tail/log.ts](https://github.com/salesforcecli/plugin-apex/blob/3.2.0/src/commands/apex/tail/log.ts)_
476+
_See code: [src/commands/apex/tail/log.ts](https://github.com/salesforcecli/plugin-apex/blob/3.2.1/src/commands/apex/tail/log.ts)_
446477

447478
<!-- commandsstop -->

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@salesforce/plugin-apex",
33
"description": "Apex commands",
4-
"version": "3.2.0",
4+
"version": "3.2.1",
55
"author": "Salesforce",
66
"bugs": "https://github.com/forcedotcom/cli/issues",
77
"dependencies": {

0 commit comments

Comments
 (0)