CumulusCI
CumulusCI copied to clipboard
Ability to specify a test suite to run instead of just test_name_match in the run_tests task
Feature Type
I'm interested in functionality that solves a current problem or limitation in how CumulusCI works.
Does your feature request solve a current problem?
We have several packages that share the same namespace and we do not have a good way to limit running tests to those in the current package. It would be useful to specify a test suite that contains the list of tests to execute.
Describe the solution you'd like
We would like to be able to execute the run_tests task and specify which test suite to run.
It would also be nice to include some "utilities" as well to maintain the list of tests in the test suite and perhaps have a dedicated subfolder in the unpackaged/ directory to store these test suites. For our use case it would be that every test class that is in the package source gets added to the test suite instead of having to manually update it.
Describe alternatives you've considered
We can override the run_tests task with a custom task where the class_path points to cumulusci.tasks.sfdx.SFDXOrgTask and execute sfdx force:apex:test:run while specifying which test suite to run by setting the -s option.
We can also create a custom flow that executes the dx task executing the same apex test command
Additional context
No response
Thank you for the detailed use case and feature request! We're tracking this as W-12214520 on our backlog.