2. Does "run-all-tests" includes running managed package tests?
- Yes
3. Is there a way to exclude running managed package tests when deploying or is it only possible to ignore the errors generated by these?
- Managed package tests will not be executed when deploying to production, unless you are deploying a managed package.
4. Does code coverage for managed packages test classes contribute to the overall org code coverage?
- The code coverage value computed by "Calculate your organization's code coverage" may differ from the code coverage value computed after running all unit tests using Run All Tests. This is because "Calculate your organization's code coverage" excludes classes that are part of installed managed packages while Run All Tests doesn't.
5. What is the result of setting the runAllTests flag to true in production vs. in sandbox?
- runAllTests is a boolean parameter causing the following behavior:
In Production - if set to false, then managed package tests will not run but every other test will run.
In Sandbox - if set to false, no tests will run.
Note: Follow the article on Running a Subset of Tests in a Deployment to see how to run specific tests, subset of tests or all tests.
000384772

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.