-
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 : Can not use option --test-level: NoTestRun #3023
sf project deploy validate : Can not use option --test-level: NoTestRun #3023
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. |
You can use this command: |
@shetzel i know but ... will it allow me to use quickDeploy after ? |
@shetzel i made a PR :) |
@nvuillam that command with See #2688 |
@shetzel I'm sorry but it does not work using
I don't know what this validate command can be used for, if it can not ignore warnings and can not be called with NoTestRun :( Would you consider accepting enhancements ? :) |
That's the Metadata API enforcement, not CLI. If you're quick deploying to production then tests are required. I'm pretty sure that's a rule regardless of what's being deployed. If you're quick deploying to non-prod then that enforcement isn't there. |
Hi @nvuillam you can simply run
The new
|
@nvuillam - would it solve your usecase if the |
@shetzel i moved all calls to deploy start --dry-run, but if validate is able to handle the options I need, i'll gladly switch back :)
|
Summary
sf project deploy validate : Can not use value
--test-level: NoTestRun
If I want to validate the future deployment of a single layout, I should be able to do so without running test classes :)
Note:
--ignore-warnings
is not accepted eitherSteps To Reproduce
Any call to sf project deploy validate with
--test-level: NoTestRun
Expected result
Deployment validation without running test classes
Actual result
Error (1): Expected --test-level=NoTestRun to be one of: RunAllTestsInOrg, RunLocalTests, RunSpecifiedTests
Additional information
System Information
The text was updated successfully, but these errors were encountered: