Skip to content

'sasjs c' - sasjsbuild/tests folder misconfigured #1416

@tmoody

Description

@tmoody

sasjs c is not producing the expected sasjsbuil\tests folder output.

For context:

sasjs/sasjsconfig.json includes:

  "testConfig": {
    "initProgram": "sasjs/tests/testinit.sas",
    "termProgram": "sasjs/tests/testterm.sas",
    "testSetUp": "sasjs/tests/testsetup.sas",
    "macroVars": {},
    "testTearDown": ""
  },

And the 3 named .sas files exist in sasjs/tests.

The output:

The test flow that is created by sasjs c is as follows:

{
  "tests": [
    "tests/macros/bitemporal_dataloader.test.1.sas",
    "tests/macros/bitemporal_dataloader.test.2.sas",
    ...
    "tests/services/public/viewlibs.test.sas",
    "tests/services/public/viewtables.test.sas"
  ],
  "testSetUp": "tests/testsetup.sas"
}

The sasjsbuild/tests folder created by sasjs c:

Image

The expected folder structure is:

sasjsbuild
  services
  tests
    macros
    services
    testsetup.sas
  hs01_compileTree.json
  ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions