When you have enabled the setting 'deploy processes and flows as active' you need 75% of Processes and Autolaunched flows to have at least some Apex code coverage.

The documentation on Running Apex Tests on a Deployment to Production is not clear whether deploying Flows or Processes will force Apex tests to run, or just rely on previous Apex test runs to determine whether Flows are covered.

Do such deployments trigger running all tests? Do we need to run specified tests that provide coverage? Or does it just rely on previous test results?

1 Answer 1


The tests are run whether you deploy the flow as active or not, as stated here: https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_deploy_running_tests.htm

If the deployment includes components for the following metadata types, all local tests are run.


  • 1
    thanks for responding to this. This doesn't quite answer the question, since that was the behavior 4 years ago, but not the behavior for recent versions of the API. I've made some proposed edits to your response to qualify this answer.
    – abd3721
    Commented Jul 14, 2019 at 22:04

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .