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

sf force source deploy report not printing correctly the code coverage #2468

Closed
mnunezdm opened this issue Sep 14, 2023 · 2 comments
Closed
Labels
bug Issue or pull request that identifies or fixes a bug investigating We're actively investigating this issue validated Version information for this issue has been validated

Comments

@mnunezdm
Copy link

Summary

Checking the status of a deployment with code coverage using sf force source deploy report prints a list of unserialized "Uncovered Lines" { column: 0, line: 44, numExecutions: 0, time: -1 }

Steps To Reproduce

  1. Start a deployment with tests
  2. Check the status with sf force source deploy report

Expected result

Name                               % Covered Uncovered Lines                                                                                                                                                   
 ────────────────────────────────── ───────── ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── 
 testClass2                         86%       79, 82, 83
 testClass1                         86%       44, 47, 48, 51, 103, 107, 112, 113, 157, 225, 226, 227, 345, 354, 355, 357, 400, 401, 402, 403, 404, 408, 409, 410, 411, 412, 416, 417, 470, 471, 472, 473, 474, 
                                              475, 476, 477, 478, 726, 727, 728, 729, 730, 731, 733, 738, 740, 747

Actual result

Name                               % Covered Uncovered Lines                                                                                                                                                   
 ────────────────────────────────── ───────── ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── 
 testClass2                         86%       [ { column: 0, line: 79, numExecutions: 0, time: -1 }, { column: 0, line: 82, numExecutions: 0, time: -1 }, { column: 0, line: 83, numExecutions: 0, time: -1 } ] 
 testClass1                         86%       [                                                                                                                                                                 
                                                { column: 0, line: 44, numExecutions: 0, time: -1 },  { column: 0, line: 47, numExecutions: 0, time: -1 },                                                      
                                                { column: 0, line: 48, numExecutions: 0, time: -1 },  { column: 0, line: 51, numExecutions: 0, time: -1 },                                                      
                                                { column: 0, line: 103, numExecutions: 0, time: -1 }, { column: 0, line: 107, numExecutions: 0, time: -1 },                                                     
                                                { column: 0, line: 112, numExecutions: 0, time: -1 }, { column: 0, line: 113, numExecutions: 0, time: -1 },                                                     
                                                { column: 0, line: 157, numExecutions: 0, time: -1 }, { column: 0, line: 225, numExecutions: 0, time: -1 },                                                     
                                                { column: 0, line: 226, numExecutions: 0, time: -1 }, { column: 0, line: 227, numExecutions: 0, time: -1 },                                                     
                                                { column: 0, line: 345, numExecutions: 0, time: -1 }, { column: 0, line: 354, numExecutions: 0, time: -1 },                                                     
                                                { column: 0, line: 355, numExecutions: 0, time: -1 }, { column: 0, line: 357, numExecutions: 0, time: -1 },                                                     
                                                { column: 0, line: 400, numExecutions: 0, time: -1 }, { column: 0, line: 401, numExecutions: 0, time: -1 },                                                     
                                                { column: 0, line: 402, numExecutions: 0, time: -1 }, { column: 0, line: 403, numExecutions: 0, time: -1 },                                                     
                                                { column: 0, line: 404, numExecutions: 0, time: -1 }, { column: 0, line: 408, numExecutions: 0, time: -1 },                                                     
                                                { column: 0, line: 409, numExecutions: 0, time: -1 }, { column: 0, line: 410, numExecutions: 0, time: -1 },                                                     
                                                { column: 0, line: 411, numExecutions: 0, time: -1 }, { column: 0, line: 412, numExecutions: 0, time: -1 },                                                     
                                                { column: 0, line: 416, numExecutions: 0, time: -1 }, { column: 0, line: 417, numExecutions: 0, time: -1 },                                                     
                                                { column: 0, line: 470, numExecutions: 0, time: -1 }, { column: 0, line: 471, numExecutions: 0, time: -1 },                                                     
                                                { column: 0, line: 472, numExecutions: 0, time: -1 }, { column: 0, line: 473, numExecutions: 0, time: -1 },                                                     
                                                { column: 0, line: 474, numExecutions: 0, time: -1 }, { column: 0, line: 475, numExecutions: 0, time: -1 },                                                     
                                                { column: 0, line: 476, numExecutions: 0, time: -1 }, { column: 0, line: 477, numExecutions: 0, time: -1 },                                                     
                                                { column: 0, line: 478, numExecutions: 0, time: -1 }, { column: 0, line: 726, numExecutions: 0, time: -1 },                                                     
                                                { column: 0, line: 727, numExecutions: 0, time: -1 }, { column: 0, line: 728, numExecutions: 0, time: -1 },                                                     
                                                { column: 0, line: 729, numExecutions: 0, time: -1 }, { column: 0, line: 730, numExecutions: 0, time: -1 },                                                     
                                                { column: 0, line: 731, numExecutions: 0, time: -1 }, { column: 0, line: 733, numExecutions: 0, time: -1 },                                                     
                                                { column: 0, line: 738, numExecutions: 0, time: -1 }, { column: 0, line: 740, numExecutions: 0, time: -1 },                                                     
                                                { column: 0, line: 747, numExecutions: 0, time: -1 }                                                                                                            
                                              ]

System Information

{
  "cliVersion": "@salesforce/cli/2.7.11",
  "architecture": "linux-x64",
  "nodeVersion": "node-v18.15.0",
  "osVersion": "Linux 5.15.0-1041-azure",
  "shell": "bash",
  "rootPath": "/opt/hostedtoolcache/sf",
  "pluginVersions": [
    "@oclif/plugin-autocomplete 2.3.6 (core)",
    "@oclif/plugin-commands 2.2.24 (core)",
    "@oclif/plugin-help 5.2.18 (core)",
    "@oclif/plugin-not-found 2.4.0 (core)",
    "@oclif/plugin-plugins 3.3.2 (core)",
    "@oclif/plugin-search 0.0.22 (core)",
    "@oclif/plugin-update 3.2.0 (core)",
    "@oclif/plugin-version 1.3.9 (core)",
    "@oclif/plugin-warn-if-update-available 2.0.49 (core)",
    "@oclif/plugin-which 2.2.32 (core)",
    "@salesforce/cli 2.7.11 (core)",
    "apex 2.3.12 (core)",
    "auth 2.8.14 (core)",
    "data 2.5.7 (core)",
    "deploy-retrieve 1.17.6 (core)",
    "info 2.6.40 (core)",
    "limits 2.3.32 (core)",
    "login 1.2.28 (core)",
    "marketplace 0.1.1 (core)",
    "org 2.10.5 (core)",
    "schema 2.3.24 (core)",
    "settings 1.4.27 (core)",
    "sobject 0.2.6 (core)",
    "source 2.10.32 (core)",
    "telemetry 2.3.1 (core)",
    "templates 55.5.10 (core)",
    "trust 2.6.7 (core)",
    "user 2.3.31 (core)"
  ]
}

Additional information

sf project deploy report works fine, but the does not allow to pass target org

@mnunezdm mnunezdm added the investigating We're actively investigating this issue label Sep 14, 2023
@github-actions
Copy link

Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support.

@github-actions github-actions bot added the validated Version information for this issue has been validated label Sep 14, 2023
@mshanemc mshanemc added the bug Issue or pull request that identifies or fixes a bug label Sep 14, 2023
@git2gus
Copy link

git2gus bot commented Sep 14, 2023

This issue has been linked to a new work item: W-14123241

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue or pull request that identifies or fixes a bug investigating We're actively investigating this issue validated Version information for this issue has been validated
Projects
None yet
Development

No branches or pull requests

3 participants