Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions command-snapshot.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,15 @@
"flags": [
"api-version",
"code-coverage",
"concise",
"detailed-coverage",
"flags-dir",
"json",
"loglevel",
"output-dir",
"result-format",
"target-org",
"test-run-id",
"concise"
"test-run-id"
],
"plugin": "@salesforce/plugin-apex"
},
Expand Down Expand Up @@ -72,6 +73,7 @@
"api-version",
"class-names",
"code-coverage",
"concise",
"detailed-coverage",
"flags-dir",
"json",
Expand All @@ -83,8 +85,7 @@
"target-org",
"test-level",
"tests",
"wait",
"concise"
"wait"
],
"plugin": "@salesforce/plugin-apex"
},
Expand Down
6 changes: 6 additions & 0 deletions messages/gettest.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ Display test results for a specific asynchronous test run.

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.

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.

# examples

- Display test results for your default org using a test run ID:
Expand Down Expand Up @@ -39,3 +41,7 @@ Display only failed test results; works with human-readable output only.
# apexLibErr

Unknown error in Apex Library: %s

# flags.detailed-coverage.summary

Display detailed code coverage per test.
5 changes: 5 additions & 0 deletions src/commands/apex/get/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ export default class Test extends SfCommand<RunResult> {
length: 'both',
}),
'code-coverage': codeCoverageFlag,
'detailed-coverage': Flags.boolean({
summary: messages.getMessage('flags.detailed-coverage.summary'),
dependsOn: ['code-coverage'],
}),
'output-dir': Flags.directory({
aliases: ['outputdir', 'output-directory'],
deprecateAliases: true,
Expand Down Expand Up @@ -68,6 +72,7 @@ export default class Test extends SfCommand<RunResult> {
'result-format': flags['result-format'],
json: flags.json,
'code-coverage': flags['code-coverage'],
'detailed-coverage': flags['detailed-coverage'],
concise: flags.concise,
});
}
Expand Down
Loading
Loading