enable sfdx force:source:deploy to accept test suites #2349
Replies: 9 comments 5 replies
-
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. |
Beta Was this translation helpful? Give feedback.
-
This issue has been linked to a new work item: W-12195089 |
Beta Was this translation helpful? Give feedback.
-
I see that this issue was closed, but when I try to use the command as proposed, it does not work. Has this been added to the CLI?
|
Beta Was this translation helpful? Give feedback.
-
Should not of be closed. The work item has yet to be scheduled. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the quick response @peternhale! I am also curious if this will be able to be used in conjunction with
|
Beta Was this translation helpful? Give feedback.
-
I do not know at this moment, but I will make sure your comment is included in the work item. |
Beta Was this translation helpful? Give feedback.
-
Subscribing for this feature as it would dramatically improve our deployment time. |
Beta Was this translation helpful? Give feedback.
-
We don't want to implement this as described (query suites to translate it into test names) because that quickly hits a URL length limit. What you really want is for the metadata API to accept test suites in its |
Beta Was this translation helpful? Give feedback.
-
Is your feature request related to a problem? Please describe.
Im trying to run test suites when running sfdx force:source:deploy. I can do it by myself querying ApexTestSuite and TestSuiteMembership to generate a list of apex test classes, but it would nice to have this available by default in sfdx.
At the moment only
sfdx force:apex:test:run
supports a list of test suites. This command has a flag called-s | --suite-names
which acceptsComma-separated list of Apex test suite names to run; default is all suites
What are you trying to do
Execute tests using test suites when running
sfdx force:source:deploy
Describe the solution you'd like
sfdx force:source:deploy --test-suites test_suite_1,test_suite_2,test_suite_3
Describe alternatives you've considered
convert test suites to a a list of apex tests classes, and then pass this list to the
-r
flag insfdx force:source:deploy
Additional context
N/A
Beta Was this translation helpful? Give feedback.
All reactions