Skip to content

CodeCoveragePercentages is empty for sf package create with --code-coverage #3499

@nwcm

Description

@nwcm

Note
Before you submit your issue, make sure that:

  • You're using the latest version of Salesforce CLI.
  • You've searched both open and closed issues for related posts.
  • You've used the doctor command to diagnose common issues.
  • You understand that GitHub Issues don't adhere to any agreement or SLA.
    • If you require immediate assistance, use official channels such as Salesforce Customer Support.

Summary

The detail of code coverage percentages is always null

sf package version create --code-coverage --async-validation --json

sf package version create report --package-create-request-id ""

sf package version report --package "$(Package2VersionId)"

{
  "architecture": "linux-x64",
  "cliVersion": "@salesforce/cli/2.120.3",
  "nodeVersion": "node-v20.19.6",
  "osVersion": "Linux 6.11.0-1018-azure",
  "rootPath": "/usr/local/lib/node_modules/@salesforce/cli",
  "shell": "bash",
  "pluginVersions": [
    "@oclif/plugin-autocomplete 3.2.39 (core)",
    "@oclif/plugin-commands 4.1.38 (core)",
    "@oclif/plugin-help 6.2.36 (core)",
    "@oclif/plugin-not-found 3.2.73 (core)",
    "@oclif/plugin-plugins 5.4.54 (core)",
    "@oclif/plugin-search 1.2.36 (core)",
    "@oclif/plugin-update 4.7.16 (core)",
    "@oclif/plugin-version 2.2.36 (core)",
    "@oclif/plugin-warn-if-update-available 3.1.54 (core)",
    "@oclif/plugin-which 3.2.42 (core)",
    "@salesforce/cli 2.120.3 (core)",
    "agent 1.26.5 (core)",
    "apex 3.9.5 (core)",
    "api 1.3.7 (core)",
    "auth 4.1.2 (core)",
    "data 4.0.67 (core)",
    "deploy-retrieve 3.24.7 (core)",
    "info 3.4.100 (core)",
    "limits 3.3.74 (core)",
    "marketplace 1.3.8 (core)",
    "org 5.9.59 (core)",
    "packaging 2.24.7 (core)",
    "schema 3.3.90 (core)",
    "settings 2.4.54 (core)",
    "sobject 1.4.81 (core)",
    "telemetry 3.6.71 (core)",
    "templates 56.4.2 (core)",
    "trust 3.7.113 (core)",
    "user 3.6.46 (core)"
  ]
}

Steps To Reproduce

IMPORTANT
Provide a repository that's configured to reproduce the issue. If you are unable to provide a repo, please explain why not. The more info we have from the start, the faster we can resolve your issue.
We may close your issue if you don't include proper instructions.

  • Generate a project with sf project generate or fork dreamhouse-lwc.
  • Provide detailed step-by-step instructions on how to reproduce the issue.

Tip

use sf doctor --create-issue to automatically fill the required information

Expected result

Actual result

Additional information

System Information

PASTE_VERSION_OUTPUT_HERE

Metadata

Metadata

Assignees

No one assigned

    Labels

    more information requiredIssue requires more information or a response from the customer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions