Skip Testing

AttributeTypeDescriptionPackage Types Applicable
skipTestingbooleanSkip trigger of apex tests while validating or deploying
  • unlocked
  • org-dependent unlocked
  • source
  • diff

One can utilize this attribute on a package definition is sfdx-project.json to skipTesting while a change is validated. Use this option with caution, as the package when it gets deployed (depending on the package behaviour) might trigger testing while being deployed to production

// Demonstrating how to do use skipTesting
{
  "packageDirectories": [
    {
      "path": "core-crm",
      "package": "core-crm",
      "versionDescription": "Package containing core schema and classes",
      "versionNumber": "4.7.0.NEXT",
      <a data-footnote-ref href="#user-content-fn-1">"skipTesting": true</a>
    },
     ...
   ]
}