Skip to content

Commit

Permalink
feat(install): Specify testLevel for a not optimized source package v…
Browse files Browse the repository at this point in the history
…alidating (dxatscale#1434)

Co-authored-by: Azlam <[email protected]>
  • Loading branch information
nabondance and azlam-abdulsalam authored Nov 13, 2023
1 parent 2f07ff4 commit 00d7b64
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/core/src/package/packageInstallers/InstallPackage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,15 @@ export abstract class InstallPackage {
deploymentOptions.testLevel = TestLevel.RunLocalTests;
}
}
}
// #Issue 1417
// Handle the use-cases of a not optimized source package validating
else if (this.sfpPackage.packageType == PackageType.Source && this.sfpPackage.isApexFound && this.options.isInstallingForValidation && !optimizeDeployment ) {
if (skipTest) {
deploymentOptions.testLevel = TestLevel.RunNoTests;
} else {
deploymentOptions.testLevel = TestLevel.RunLocalTests;
}
} else {
if (orgDetails.isSandbox) {
deploymentOptions.testLevel = TestLevel.RunNoTests;
Expand Down

0 comments on commit 00d7b64

Please sign in to comment.