You need to sign in to do that
Don't have an account?
AK-2
Deploying to development org
I have a development org where I trying out a few deployment scripts with Ant. However, when I deploy to the dev org, the unit tests are not run automatically.
In the dev org, if I run unit tests when I deploy using the "runAllTests" flag to true, the deployment fails because of code coverage. However, if I set runAllTests to false, the deployment works since the unit tests don't run.
However, my question is - shouldn't the unit tests always run when I deploy to the org since it's a prod org (even though it's a dev org)? Will I be able to set runAllTests to false in prod org to bypass unit tests?
In the dev org, if I run unit tests when I deploy using the "runAllTests" flag to true, the deployment fails because of code coverage. However, if I set runAllTests to false, the deployment works since the unit tests don't run.
However, my question is - shouldn't the unit tests always run when I deploy to the org since it's a prod org (even though it's a dev org)? Will I be able to set runAllTests to false in prod org to bypass unit tests?
And when you deploy to production, it will run your code's unit tests, even if runAllTests=false. If you set runAllTests=true, then it will not only run your own unit tests, but any installed package's unit tests as well.