This repository was archived by the owner on Mar 18, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
packages/core/src/package/packageInstallers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -468,6 +468,15 @@ export abstract class InstallPackage {
468468 deploymentOptions . testLevel = TestLevel . RunLocalTests ;
469469 }
470470 }
471+ }
472+ // #Issue 1417
473+ // Handle the use-cases of a not optimized source package validating
474+ else if ( this . sfpPackage . packageType == PackageType . Source && this . sfpPackage . isApexFound && this . options . isInstallingForValidation && ! optimizeDeployment ) {
475+ if ( skipTest ) {
476+ deploymentOptions . testLevel = TestLevel . RunNoTests ;
477+ } else {
478+ deploymentOptions . testLevel = TestLevel . RunLocalTests ;
479+ }
471480 } else {
472481 if ( orgDetails . isSandbox ) {
473482 deploymentOptions . testLevel = TestLevel . RunNoTests ;
You can’t perform that action at this time.
0 commit comments