Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to generate complete code coverage report on unlocked package version #688

Closed
ar-srinivas opened this issue Oct 21, 2020 · 3 comments
Labels
area:packaging owned by another team The Salesforce CLI team does not own this work but will pass on the information to the correct team.

Comments

@ar-srinivas
Copy link

Summary

While creating a unlocked package version we have an option to run code coverage (-c) and the version:report gives the code coverage percentage but not the complete code coverage report by each class level. Is there a way to get the complete code coverage report by each class and test class.

Steps To Reproduce:

Repository to reproduce: dreamhouse-lwc

NOTE: If your issue is not reproducable by dreamhouse-lwc, i.e. requires specific metadata or files, we require a link to a simple Salesforce project repository with a script to setup a scratch org that reproduces your problem.

  1. Create a unlocked package version giving the code coverage option (-c).
  2. Post version creation, run force:package:version:report to check the code coverage details

Expected result

Trying a way to get the complete code coverage result

Actual result

Only code coverage percentage is given on CLI

Additional information

Feel free to attach a screenshot.

SFDX CLI Version(to find the version of the CLI engine run sfdx --version):sfdx-cli/7.76.1-f301d5641f win32-x64 node-v12.18.3

SFDX plugin Version(to find the version of the CLI plugin run sfdx plugins --core): @oclif/plugin-autocomplete 0.1.5 (core)
@oclif/plugin-commands 1.3.0 (core)
@oclif/plugin-help 3.2.0 (core)
@oclif/plugin-not-found 1.2.4 (core)
@oclif/plugin-plugins 1.9.1 (core)
@oclif/plugin-update 1.3.10 (core)
@oclif/plugin-warn-if-update-available 1.7.0 (core)
@oclif/plugin-which 1.0.3 (core)
@salesforce/sfdx-scanner 2.3.0
@salesforce/sfdx-trust 3.4.3 (core)
alias 1.1.2 (core)
analytics 1.12.1 (core)
config 1.1.9 (core)
generator 1.1.3 (core)
salesforcedx 49.9.2 (49.9.2)
├─ templates 49.9.1
├─ @salesforce/sfdx-plugin-lwc-test 0.1.7
├─ salesforce-alm 49.10.0
├─ custom-metadata 1.0.10
└─ apex 0.0.9
sfdx-cli 7.76.1 (core)
sfdx-codescan-plugin 1.0.4

OS and version: Windows 10

@mshanemc mshanemc added the owned by another team The Salesforce CLI team does not own this work but will pass on the information to the correct team. label Dec 9, 2021
@github-actions
Copy link

github-actions bot commented Dec 9, 2021

We have determined that the issue you reported exists in code owned by another team that uses only the official support channels. To ensure that your issue is addressed, open an official Salesforce customer support ticket with a link to this issue. We encourage anyone experiencing this issue to do the same to increase the priority. We will keep this issue open for the community to collaborate on.

@mshanemc
Copy link
Contributor

mshanemc commented Dec 9, 2021

you'll want to open a case for the packaging team if this is still a problem.

@shetzel
Copy link
Contributor

shetzel commented Oct 26, 2023

The command now has a --verbose flag that shows code coverage details by class. E.g. sf package version report -p 04t... --verbose

@shetzel shetzel closed this as completed Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:packaging owned by another team The Salesforce CLI team does not own this work but will pass on the information to the correct team.
Projects
None yet
Development

No branches or pull requests

4 participants