Skip to content

enable sfdx force:source:deploy to accept test suites #1836

@AllanOricil

Description

@AllanOricil

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 accepts Comma-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 in sfdx force:source:deploy

Additional context
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureIssue or pull request for a new feature

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions