-
Notifications
You must be signed in to change notification settings - Fork 78
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 project deploy validate does not tell why validation failed #2179
Comments
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. |
This issue has been linked to a new work item: W-13546168 |
Hi @MarcDBehr I'm able to repro the issue, thanks! if you pass in the
I think we could add a msg that suggest people to enable the verbose mode when there's a code coverage warning in the response payload. Also confirmed deploy details aren't included in the json output even with |
Hi @cristiand391, Not sure if the --verbose would have helped me. My results showed that all 16 tests actually passed, but the coverage was coming up at 65%. I guess if I wanted to try to do the math based on the results to see that I was below 75%, it might have helped, but I think that it would be better if the 'insufficient code coverage' message were returned rather than a vague "Failed to validate the deployment" message. |
Agree. I looked at the response and it also includes that warning about code coverage < 75% so the command can print that too 👍🏼 |
Summary
When running a "sf project deploy validate" command, if the validation fails, it does not say why it failed (if the reason was Code Coverage Failure at least)
Steps To Reproduce:
Attempt to run "sf project deploy validate" in a scenario where there are missing apex tests.
Expected result
Some type of error message stating why the deployment failed should be provided
Actual result
or with the --json flag:
Looking in the syetm and the Deployment Status page shows that there was insufficient code coverage in the org
System Information
Which shell/terminal are you using? (e.g. bash, zsh, powershell 5, powershell 7, cmd.exe, etc.)
bash
If you are using
sfdx
sfdx version --verbose --json
If you are using
sf
sf version --verbose --json
The text was updated successfully, but these errors were encountered: