-
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
NoTestRun Not Accepted When Validating in a Sandbox Org #2470
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. |
Hello @mcarvin8 👋 None of the versions of Shared: Update to the latest version of Salesforce CLI (docs) and confirm that you're still seeing your issue. After updating, share the full output of |
Same behavior seen when updating to the latest CLI {
"cliVersion": "@salesforce/cli/2.7.11",
"architecture": "win32-x64",
"nodeVersion": "node-v18.15.0",
"osVersion": "Windows_NT 10.0.19045",
"shell": "cmd.exe",
"rootPath": "C:\\Users\\matthew.carvin\\AppData\\Local\\sf\\client\\2.7.11-5a5b1de",
"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)",
"sfdx-git-delta 5.25.2 (user)"
]
} |
@mcarvin8 we designed 2 distinct paths for validation in
|
Thanks @mshanemc for the update. The |
Summary
Setting the Test Level to
NoTestRun
is currently accepted when running a deployment (sf project deploy start
) to a sandbox org.NoTestRun
is not accepted when attempting to run a validation (sf project deploy validate -x manifest/package.xml -l NoTestRun --verbose
).Additionally, when I omit the Test Level from the validation command above (
sf project deploy validate -x manifest/package.xml --verbose
), all local tests in the org run during the validation.Omitting the Test Level during a Deployment of Non-Apex to a sandbox will set tests to Not Required after Salesforce scans the package.xml.
Steps To Reproduce
sf project deploy validate -x manifest/package.xml -l NoTestRun --verbose
sf project deploy validate -x manifest/package.xml --verbose
Expected result
Validation to the sandbox org starts with No Tests Required when setting Test Level to
NoTestRun
or omitting the Test Level to default to Salesforce scanning the package.xml.Actual result
Validation with NoTestRun does not start with this error statement.
Validation which Omits Test Level runs all local tests in the org.
System Information
PowerShell on Windows 10
Additional information
Setting Test Level to
NoTestRun
for a Validation of Non-Apex PackageOmit Test Level for a Validation of Non-Apex Package
The text was updated successfully, but these errors were encountered: