HMS-Analytical-Software / SASUnit

SASUnit is a unit testing framework for SAS(TM)-programs. It can be used for the development, execution and automatic documentation of tests for SAS programs.
GNU Lesser General Public License v3.0
2 stars 0 forks source link

no test files found #21

Closed mgross-lg closed 7 months ago

mgross-lg commented 8 months ago

Contact Details

Matthias.Gross@lgl.bwl.de

What happened?

When the SASUNIT_PROJECTROOT directory has only subdirectories with test files (no test file in the project root directory) then sasunit found no test files.

Version

2.1 (Default)

Relevant log output

No response

Code of Conduct

KLandwich commented 8 months ago

Hi mgross-lg,

yes that is true.

Runsasunit does not work recursively. It only checks the files in the given directory. You need to specify one call to runsasunit for each folder containing test programs.

That's the way it currently is implemented.

Regards Klaus

mgross-lg commented 8 months ago

In run_all.sas i can set %runSASUnit(i_source = %str(*)_test.sas, i_recursive=1). Then test files in all subdirectories are found, when in the SASUNIT_PROJECTROOT directory has minumum one test file. But nothing test files found when SASUNIT_PROJECTROOT has no test file.

Regard Matthias

KLandwich commented 8 months ago

Hi Matthias,

you are absolutely right. There is a switch for recursive scan. As we got rid of the OS commands for searching files in the OS we missed that feature in the test cases.

Thanks for reporting and correcting me.

Regards Klaus