diff --git a/dist/index.js b/dist/index.js index fd0d8ff..268cccc 100644 --- a/dist/index.js +++ b/dist/index.js @@ -13381,7 +13381,10 @@ let deploy = function (deploy){ } if(deploy.testlevel == "RunSpecifiedTests"){ - testClassesTmp = getApexTestClass(sfdxRootFolder ? path.join(sfdxRootFolder, manifestTmp) : manifestTmp, deploy.defaultSourcePath + '/classes', deploy.defaultTestClass); + testClassesTmp = getApexTestClass( + sfdxRootFolder ? path.join(sfdxRootFolder, manifestTmp) : manifestTmp, + sfdxRootFolder ? path.join(sfdxRootFolder, deploy.defaultSourcePath, 'classes') : path.join(deploy.defaultSourcePath, 'classes'), + deploy.defaultTestClass); core.info("classes are : " + testClassesTmp); diff --git a/src/utils/sfdx.js b/src/utils/sfdx.js index d92f534..76f56c4 100644 --- a/src/utils/sfdx.js +++ b/src/utils/sfdx.js @@ -72,7 +72,10 @@ let deploy = function (deploy){ } if(deploy.testlevel == "RunSpecifiedTests"){ - testClassesTmp = getApexTestClass(sfdxRootFolder ? path.join(sfdxRootFolder, manifestTmp) : manifestTmp, deploy.defaultSourcePath + '/classes', deploy.defaultTestClass); + testClassesTmp = getApexTestClass( + sfdxRootFolder ? path.join(sfdxRootFolder, manifestTmp) : manifestTmp, + sfdxRootFolder ? path.join(sfdxRootFolder, deploy.defaultSourcePath, 'classes') : path.join(deploy.defaultSourcePath, 'classes'), + deploy.defaultTestClass); core.info("classes are : " + testClassesTmp);