Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

is there a simple way to schedule the run of all test classes? I want to avoid having to do this manually every day.

Thank you!

share|improve this question

Here is a cookbook code from that does just that

share|improve this answer
Thank you! I will follow this and see if I can implement it. I was hoping there's something that won't require custom coding :-( – user9862 Aug 6 '14 at 13:19

A not so simple way but a good approach if you are using a version control system...

You can go a step further than running your tests once a day by having your tests run every time someone commits a change. See e.g. Setting Up Jenkins for Continuous Integration. (This also verifies that what you have in your version control system is deployable i.e. pieces are not missing.)

Jenkins listens for changes from your version control system, then when anything changes deploys your code and runs all the tests. On a busy project where many changes are made a day, this allows failures to be identified and addressed more quickly than the following day.

share|improve this answer
we haven't implemented version control yet. I need an interim solution until version control process is in place. – user9862 Aug 6 '14 at 13:20
@user9862 Understood - just wanted to paint the picture of what the overall setup could look like in the future. – Keith C Aug 6 '14 at 13:22

Here's yet another way to do this, with a Visualforce "control panel" that makes setup and monitoring a snap: Force Code's Scheduled Apex Unit Tests

enter image description here

share|improve this answer

You can use Developer console for running all test classes. It has option , Run all , just clicking that option will do.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.