Take the 2-minute tour ×
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

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

2 Answers 2

Here is a cookbook code from developer.force.com that does just that

http://developer.force.com/cookbook/recipe/automated-unit-test-execution

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 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 Force.com 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 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 at 13:22

Your Answer

 
discard

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.