Activity Forums Salesforce® Discussions Is there a possibility for Run all tests (in target sandbox) before deployment ?

  • Is there a possibility for Run all tests (in target sandbox) before deployment ?

    Posted by Deepak on October 7, 2019 at 12:28 pm

    Is there a possibility for Run all tests (in target sandbox) before deployment?

    Laveena replied 5 years, 1 month ago 2 Members · 1 Reply
  • 1 Reply
  • Laveena

    Member
    October 7, 2019 at 12:34 pm

    Hi Deepak,

    You can force a run of all tests when deploying using the Force.com migration tool which is a wrapper over Ant. Set runAllTests=true when deploying to simulate a production like deployment where all tests are run while deploying. To rollback if test classes fail, set the rollBackOnError deployment option to true.

    Thanks

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos