File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -102,6 +102,7 @@ $(document).ready(() => {
102
102
settings . runApexTests = 'false' ;
103
103
settings . scratchOrgDef = 'config/project-scratch-def.json' ;
104
104
settings . showScratchOrgUrl = 'true' ;
105
+ settings . openPath = '' ;
105
106
106
107
} ,
107
108
success : ( yamlFileDataResponse ) => {
@@ -123,7 +124,8 @@ $(document).ready(() => {
123
124
settings . runApexTests = doc [ 'run-apex-tests' ] ;
124
125
settings . scratchOrgDef = doc [ 'scratch-org-def' ] ;
125
126
settings . showScratchOrgUrl = doc [ 'show-scratch-org-url' ] ;
126
-
127
+ settings . openPath = doc [ 'open-path' ] ;
128
+
127
129
const dataPlanCount = doc [ 'data-plans' ] . length ;
128
130
129
131
if ( dataPlanCount > 0 ) {
Original file line number Diff line number Diff line change 18
18
run-apex-tests: true
19
19
delete-scratch-org: false
20
20
show-scratch-org-url: true
21
+ open-path: c/YourCustomApp.app
21
22
data-plans:
22
23
- ./data/YourCustomObject1__c-plan.json
23
24
- ./data/YourCustomObject2__c-plan.json
Original file line number Diff line number Diff line change @@ -178,6 +178,10 @@ async.whilst(
178
178
179
179
settings . testScript = `${ settings . startingDirectory } cd ${ settings . directory } ;export FORCE_SHOW_SPINNER=;sfdx force:apex:test:run -r human --json | jq -r .result | jq -r .summary | jq -r .outcome` ;
180
180
settings . urlScript = `${ settings . startingDirectory } cd ${ settings . directory } ;export FORCE_SHOW_SPINNER=;echo $(sfdx force:org:display --json | jq -r .result.instanceUrl)"/secur/frontdoor.jsp?sid="$(sfdx force:org:display --json | jq -r .result.accessToken)` ;
181
+ // add path if specified in yaml
182
+ if ( settings . openPath ) {
183
+ settings . urlScript += `"&retURL="${ settings . openPath } ` ;
184
+ }
181
185
settings . scratchOrgUrl = '' ;
182
186
settings . stderr = '' ;
183
187
settings . stdout = '' ;
You can’t perform that action at this time.
0 commit comments