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

Allow project delete source to run specific tests #2175

Closed
jefersonchaves opened this issue May 31, 2023 · 5 comments
Closed

Allow project delete source to run specific tests #2175

jefersonchaves opened this issue May 31, 2023 · 5 comments
Labels
feature Issue or pull request for a new feature

Comments

@jefersonchaves
Copy link

Is your feature request related to a problem? Please describe.
Destructive changes are usually laser-focused, and sometimes they are needed as a second or even third step to clean-up, given the need first to remove the references, sometimes not working as --post-destructive-changes .

This is related to #971 (thanks a lot for adding this).

What are you trying to do
I want to be able to run a deletion and specify the tests to be executed. Example: I may want to delete one class and run a set of unit tests instead of all of them. This enhancement can speed up destructive deployment with this command.

Describe the solution you'd like
Add the flag --tests and the value RunSpecifiedTests as a valid test level on flag --test-level.

Describe alternatives you've considered
The workaround is either to use project deploy start with --post-destructive-changes or create a secondary package and run a separate project deploy start with a separate package and the targeted tests.

@jefersonchaves jefersonchaves added the feature Issue or pull request for a new feature label May 31, 2023
@github-actions
Copy link

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.

@git2gus
Copy link

git2gus bot commented May 31, 2023

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

@AllanOricil
Copy link

AllanOricil commented May 31, 2023

Couldn't this be done with sfdx force:source:deploy with --post-destructive-changes and --tests?

@jefersonchaves
Copy link
Author

Yes, that is on the workaround section. So, yep but it means crafting a package while the delete could be easier.

@shetzel
Copy link
Contributor

shetzel commented Jul 6, 2023

This is now in the latest CLIs: sfdx 7.208.10 / sf 1.85.8

@shetzel shetzel closed this as completed Jul 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Issue or pull request for a new feature
Projects
None yet
Development

No branches or pull requests

3 participants