function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Shivendu Pande1Shivendu Pande1 

How to Schedule Run all apex tests on daily basis

How to Schedule Run all apex tests on a daily basis?
Currently, we are performing it manually is there any way we can automate it using code?
AbhishekAbhishek (Salesforce Developers) 
Hi,

There are many, many ways to automate it. You can subscribe to an app like GearSet to schedule automations, you can set up a CI/CD (Continuous Integration/Continuous Delivery) system to run tests on a schedule, you can use the basic core features of Windows or Linux systems to run a Windows Task or Cronjob, deploy a container to Heroku or AWS, etc, or you could write Apex code in a scheduled class to run at the desired time. Each solution will have different technical requirements, may require a subscription, etc.

I hope you find the above information is helpful. If it does, please mark as Best Answer to help others too.

Thanks/
Mostafa AsadiMostafa Asadi
Nice job copy/pasting someone else's answer from stackexchange.