sasjs / cli

Command line interface for creating, compiling, and building SAS® projects
https://cli.sasjs.io
MIT License
37 stars 5 forks source link

testConfig.termProgram is not being compiled from config root #1064

Closed allanbowe closed 2 years ago

allanbowe commented 2 years ago

To reproduce:

sasjs create demo -t jobs
cd demo
cat > sasjs/sasjsconfig.json <<'EOL'
{
  "$schema": "https://raw.githubusercontent.com/sasjs/utils/main/src/types/sasjsconfig-schema.json",
  "macroFolders": [
    "macros"
  ],
  "jobConfig": {
    "jobFolders": [
      "jobs/extract",
      "jobs/load"
    ],
    "initProgram": "jobs/jobinit.sas",
    "termProgram": "jobs/jobterm.sas",
    "macroVars": {}
  },
  "testConfig": {
    "termProgram": "tests/testterm.sas"
  },
  "programFolders": [
    "db/demolib",
    "includes"
  ],
  "defaultTarget": "viya",
  "targets": [
    {
      "name": "viya",
      "serverType": "SASVIYA",
      "appLoc": "/Public/sasjs/jobs",
      "testConfig": {
        "testFolders": [
          "tests"
        ]
      }
    }
  ]
}
EOL
 tail sasjsbuild/tests/macros/assert.test.sas 

Expected - the contents of tests/testterm.sas should be in the console (%put testing, termed;).

ghost commented 2 years ago

:tada: This issue has been resolved in version 3.6.2 :tada:

The release is available on:

Your semantic-release bot :package::rocket: