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 6 years, 7 months 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.