-
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
INVALID_OPERATION: testLevel of NoTestRun cannot be used in production organizations #2105
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. |
@Sebastian-Axenon I'm not from sf but I'm curious what were you expecting, the default behaviour where all local tests are run? |
Hi @pgonzaleznetwork, as the documentation state, the default value is NoTestRun. |
the old commands ( Would you want an option that means "do not specify" to delegate to the org's default behavior? |
Thank you for filing this feature request. We appreciate your feedback and will review the feature at our next grooming or sprint planning session. We prioritize feature requests with more upvotes and comments. |
This issue has been linked to a new work item: W-13176087 |
This issue impacts my team as well. I'm currently able to specify We can build a workaround by having it run an empty test class, but that seems a bit wonky as a permanent solution. |
Agreed, this is a problematic gap. You can actually specify a non-existent test class: |
This issue was fixed with this PR to the deploy-retrieve plugin: salesforcecli/plugin-deploy-retrieve#611 Please reopen if you have steps that reproduce the problem. |
Summary
When deploying Custom Fields to a production org with sf project deploy start command, following error is returned:
Error (1): INVALID_OPERATION: testLevel of NoTestRun cannot be used in production organizations
Steps To Reproduce:
Run sf project deploy start targeting a production org and only deploying a custom field
The text was updated successfully, but these errors were encountered: