Skip to content

Commit

Permalink
Merge pull request tiagonnascimento#17 from trilogy-group/master
Browse files Browse the repository at this point in the history
Tests path calculation fixed
  • Loading branch information
tiagonnascimento authored May 11, 2021
2 parents a8a4f8c + 0c1f05e commit dd1e2f2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
5 changes: 4 additions & 1 deletion src/utils/sfdx.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit dd1e2f2

Please sign in to comment.