File tree Expand file tree Collapse file tree 2 files changed +30
-1
lines changed
Expand file tree Collapse file tree 2 files changed +30
-1
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,11 @@ Provide a test run ID to display test results for an enqueued or completed async
2222
2323- Specify a directory in which to save the test results from the org with the specified username (rather than your default org):
2424
25- <%= config.bin %> <%= command.id %> --test-run-id <test run id > --code-coverage --output-dir <path to outputdir > --target-org me@myorg',
25+ <%= config.bin %> <%= command.id %> --test-run-id <test run id > --code-coverage --output-dir <path to outputdir > --target-org me@myorg'
26+
27+ - View test results. The command outputs the apex get test command with a job ID that you then run to view the full results:
28+
29+ <%= config.bin %> <%= command.id %> --test-run-id 7078HzRMVV --target-org myscratch
2630
2731# flags.test-run-id.summary
2832
Original file line number Diff line number Diff line change @@ -34,6 +34,31 @@ NOTE: The testRunCoverage value (JSON and JUnit result formats) is a percentage
3434
3535 <%= config.bin %> <%= command.id %> --test-level RunLocalTests --output-dir <
path to outputdir > --target-org
[email protected] 3636
37+ - Run all tests in the org asynchronously:
38+
39+ <%= config.bin %> <%= command.id %> --target-org myscratch
40+
41+ - Run all tests synchronously. The command waits to display the test results until all tests finish:
42+
43+ <%= config.bin %> <%= command.id %> --synchronous
44+
45+ - Run specific tests using the --test-level flag:
46+
47+ <%= config.bin %> <%= command.id %> --test-level RunLocalTests
48+
49+ - Run Apex tests on all the methods a the specified class; output results in Test Anything Protocol (TAP) format, and requests code coverage result:
50+
51+ <%= config.bin %> <%= command.id %> --class-names TestA --class-names TestB --result-format tap --code-coverage
52+
53+ - Run Apex tests on methods specified using the standard Class.method notation; if you specify a test class without a method, the command runs all methods in the class:
54+
55+ <%= config.bin %> <%= command.id %> --tests TestA.excitingMethod --tests TestA.boringMethod --tests TestB
56+
57+ - Run Apex tests on methods specified using the standard Class.method notation with a namespace; if you specify a test class without a method, the command runs all methods in the class:
58+
59+ <%= config.bin %> <%= command.id %> --tests ns.TestA.excitingMethod --tests ns.TestA.boringMethod --tests ns.TestB
60+
61+
3762# flags.class-names.summary
3863
3964Apex test class names to run; default is all classes.
You can’t perform that action at this time.
0 commit comments