Skip to content

Commit

Permalink
Merge branch 'migrate-sf-plugin' into alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
nvuillam committed Sep 12, 2024
2 parents d5d144c + b2f1ce7 commit 586ef76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/commands/hardis/project/deploy/sources/dx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ If testlevel=RunRepositoryTests, can contain a regular expression to keep only c
);
if (Array.isArray(testClassList) && testClassList.length) {
flags.testlevel = 'RunSpecifiedTests';
testClasses = testClassList.join();
testClasses = testClassList.join(" ");
} else {
// Default back to RunLocalTests in case if repository has zero tests
flags.testlevel = 'RunLocalTests';
Expand Down
2 changes: 1 addition & 1 deletion src/common/utils/deployUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ export async function forceSourceDeploy(
`sf project deploy ${check ? 'validate' : 'start'} --manifest "${deployment.packageXmlFile}"` +
' --ignore-warnings' + // So it does not fail in for objectTranslations stuff
` --test-level ${testlevel}` +
(options.testClasses && testlevel !== 'NoTestRun' ? ` --run-tests ${options.testClasses}` : '') +
(options.testClasses && testlevel !== 'NoTestRun' ? ` --tests ${options.testClasses}` : '') +
(options.preDestructiveChanges ? ` --pre-destructive-changes ${options.preDestructiveChanges}` : '') +
(options.postDestructiveChanges ? ` --post-destructive-changes ${options.postDestructiveChanges}` : '') +
(options.targetUsername ? ` -o ${options.targetUsername}` : '') +
Expand Down

0 comments on commit 586ef76

Please sign in to comment.