function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Omar VillasmilOmar Villasmil 

Deploy() TestLevel final scenarios table

Hi,

According to the documentation where you find a bit of information in so many places, it is not clear to me the deployment test level options and their effect.

Can someone say if below table is correct?

Test Level value, Org type and Package content:
  • Org | Package content | None specified | NoTestRun | RunAllTestsInOrg (Org tests, Managed package tests)  | RunLocalTests (Org tests, No managed package tests) | RunSpecifiedTests (Subset of org tests, No managed package tests)
  1. Sandbox | No Apex classes or triggers | Default: NoTestRun | no tests are run | run tests | run tests| run specified tests
  2. Sandbox | Apex classes or triggers | Default: NoTestRun | no tests are run | run tests | run tests| run specified tests
  3. Production | No Apex classes or triggers | Default: NoTestRun | no tests are run | run tests | run tests | run specified tests
  4. Production | Apex classes or triggers | Default: RunLocalTests | Run as RunLocalTests | run tests | run tests | run specified tests