223k views
4 votes
Rob wants to start automating the execution of Apex tests in different orgs to make sure all features are working as they should before they reach production. How can he accomplish this with Copado?

(a) He can schedule daily, weekly, or monthly Apex tests in the Credential record of the different environments
(b) He can automate the execution of Apex tests while deploying with Copado Continuous Delivery
(c) He can create a validation rule to ensure developers cannot save user stories unless the Run Apex tests on Promotion checkbox on the User Story record is selected
(d) He can create a process builder so that every time a user story is deployed to the next environment, the relevant Apex tests are run

User Granicus
by
8.2k points

1 Answer

2 votes

Final answer:

Rob can automate Apex test execution using Copado by setting up Copado Continuous Delivery to run tests during deployments, or by creating a process builder workflow to ensure tests are executed with each user story deployment.

Step-by-step explanation:

Rob can accomplish the automation of the execution of Apex tests in different orgs using Copado in several ways, but among the options presented:

  • (b) He can automate the execution of Apex tests while deploying with Copado Continuous Delivery. This option allows for tests to be automatically run as part of the deployment process, which ensures that all features work correctly before they reach production.
  • (d) He can create a process builder so that every time a user story is deployed to the next environment, the relevant Apex tests are run. This setup ensures that Apex tests are run automatically as part of the workflow of moving user stories through various stages of development and testing.

The other options provided either do not directly automate the process of running tests (such as creating a validation rule) or are not a feature of Copado (scheduling tests within Credential records).

User Darch
by
9.2k points