SASUnit Examples
Version 1.5.0
|
_abspath.sas | Check whether &i_path is absolute or empty. If not, append to &i_root |
_assertlibrary.sas | Main routine of assertLibrary |
_asserts.sas | Called by assert macros, fills table tst |
_checklog.sas | Check log for errors or warnings |
_checkscenario.sas | Determine whether a test scenario has to be executed |
_closehtmlpage.sas | This macro is part of the HTML speedup solution and "closes" an open HTML page |
linux/_copydir.sas | Copy a complete directory tree. Uses Windows XCOPY or Unix cp |
unix_aix/_copydir.sas | Copy a complete directory tree. Uses Windows XCOPY or Unix cp |
windows/_copydir.sas | Copy a complete directory tree. Uses Windows XCOPY or Unix cp |
_copyfile.sas | Copy file byte by byte |
_createtestsubfolder.sas | Creates test subfolders |
_crossreference.sas | The macro allows to gather cross reference information between different macros. A calling hierarchy is established for the directories found in the test database in columns tsu_sasautos1 to tsu_sasautos9. If i_includeSASUnit is set to 1 the directories in tsu_sasunit, tsu_sasunit_os and tsu_sasautos are included as well in the scan. Libref target has to be set |
_deletescenariofiles.sas | Deletes all appendant files in the log, tst and rep folders. Called before a scenario is being executed in order to avoid disused files |
_delfile.sas | Delete an external file if it exists |
_deltempfiles.sas | Delete all SAS datasets in the form WORK.DATAxxx, see tempFileName.sas |
_dependency.sas | The macro creates two .json files for every macro in the autocall libraries. Based on these .json files the visualization of the call hierarchy is achieved using the D3.js library. The macro takes two data sets (listcalling and dir) created by the macro _crossreference.sas as input |
_dependency_agg.sas | Aggregate JSON files to one JavaScript file containing one JSON object |
_dependency_wr.sas | The macro is called from _dependencyJsonBuilder. It iterates through the dependency tree and writes out a .json file to visualize the call hierarchy |
_detectsymbols.sas | Determine the language dependant symbols used for NOTE, ERROR, WARNING in the SAS log |
linux/_dir.sas | Generates a dataset with the names of all files in a directory or directory tree. Wildcards may be used to specify the files to be included |
unix_aix/_dir.sas | Generates a dataset with the names of all files in a directory or directory tree. Wildcards may be used to specify the files to be included |
windows/_dir.sas | Generates a dataset with the names of all files in a directory or directory tree. Wildcards may be used to specify the files to be included |
_doc.sas | This is the readme file for version 1.2 of SASUnit, the Unit testing framework for SAS(R) programs, copyright 2010, 2012 HMS Analytical Software GmbH, http://www.analytical-software.de |
_doxygroups.sas | No source code - only file grouping for Doxygen |
linux/_escapeblanks.sas | Escapes blanks with backslashes if runnign under linux or aix |
unix_aix/_escapeblanks.sas | Escapes blanks with backslashes if runnign under linux or aix |
windows/_escapeblanks.sas | Escapes blanks with backslashes if runnign under linux or aix |
linux/_executecmdfile.sas | Execute an command file by operation system command |
unix_aix/_executecmdfile.sas | Execute an command file by operation system command |
windows/_executecmdfile.sas | Execute an command file by operation system command |
_existdir.sas | Check whether a directory exists |
_existvar.sas | Determines whether a certain variable, optionally of a certain type, exists in a SAS dataset |
_getabspathcomponents.sas | Of a given absolute file path (with / as dir separator), extract the file name and the path to the file (without file name) Example: The absolute path C:/temp/test.sas splitted into the two strings C:/temp and test.sas |
_getautocallnumber.sas | Look for a specific program in all of the autocall libraries and return the number of the library (0..10) or . if not found. For autocall library numbering see initsasunit.sas |
_getextension.sas | Get file extension including the separating dot |
_getpgmdesc.sas | Retrieve program description from Doxygen brief tag |
_getscenariotestid.sas | Determine the test case id |
_gettestsubfolder.sas | Determines and returns the path for test subfolders |
_handleerror.sas | Check for errors and set status code and messages |
_initerrorhandler.sas | Initialize error handling, see _handleError.sas |
_loadenvironment.sas | Initialize runtime environment (macro symbols and librefs / / filerefs) |
linux/_mkdir.sas | Create a directory, if it does not exist The containing directory must exist |
unix_aix/_mkdir.sas | Create a directory, if it does not exist The containing directory must exist |
windows/_mkdir.sas | Create a directory, if it does not exist The containing directory must exist |
_nls.sas | Macro symbols for national language support |
_nobs.sas | Returns number of observations in a SAS dataset |
_opendummyhtmlpage.sas | This macro is part of the HTML speedup solution and "closes" an open HTML page |
linux/_oscmds.sas | Set global macro variables for OS commands |
unix_aix/_oscmds.sas | Set global macro variables for OS commands |
windows/_oscmds.sas | Set global macro variables for OS commands |
linux/_preparetextfiles.sas | Corrects termstring in textfiles. Under Linux CRLF will be converted to CR |
unix_aix/_preparetextfiles.sas | Corrects termstring in textfiles. Under Linux CRLF will be converted to CR |
windows/_preparetextfiles.sas | Corrects termstring in textfiles. Under Linux CRLF will be converted to CR |
_render_assertcolumnsact.sas | Renders the layout of the actual column for assertColumns |
_render_assertcolumnsexp.sas | Renders the layout of the expected column for assertColumns |
_render_assertcolumnsrep.sas | Create reports for assertColumns |
_render_assertequalsact.sas | Renders the layout of the actual column for assertEquals |
_render_assertequalsexp.sas | Renders the layout of the expected column for assertEquals |
_render_assertforeignkeyact.sas | Renders the layout of the actual column for assertForeignKey |
_render_assertforeignkeyexp.sas | Renders the layout of the expected column for assertForeignKey |
_render_assertforeignkeyrep.sas | Create HTML pages for assertForeignKey |
_render_assertlibraryact.sas | Renders the layout of the actual column for assertLibrary |
_render_assertlibraryexp.sas | Renders the layout of the expected column for assertLibrary |
_render_assertlibraryrep.sas | Create HTML pages for assertLibrary |
_render_assertlogact.sas | Renders the layout of the actual column for assertLog |
_render_assertlogexp.sas | Renders the layout of the expected column for assertLog |
_render_assertlogmsgact.sas | Renders the layout of the actual column for assertLogMsg |
_render_assertlogmsgexp.sas | Renders the layout of the expected column for assertLogMsg |
_render_assertperformanceact.sas | Renders the layout of the actual column for assertPerformance |
_render_assertperformanceexp.sas | Renders the layout of the expected column for assertPerformance |
_render_assertprimarykeyact.sas | Renders the layout of the actual column for assertPrimaryKey |
_render_assertprimarykeyexp.sas | Renders the layout of the expected column for assertPrimaryKey |
_render_assertprimarykeyrep.sas | Create HTML pages for assertPrimaryKey |
_render_assertrecordcountact.sas | Renders the layout of the actual column for assertRecordCount |
_render_assertrecordcountexp.sas | Renders the layout of the expected column for assertRecordCount |
_render_assertrecordexistsact.sas | Renders the layout of the actual column for assertRecordExists |
_render_assertrecordexistsexp.sas | Renders the layout of the expected column for assertRecordExists |
_render_assertreportact.sas | Renders the layout of the actual column for assertReport |
_render_assertreportexp.sas | Renders the layout of the expected column for assertReport |
_render_assertreportrep.sas | Copy reports for assertReport and create frame page for comparison where necessary (if two reports have been specified) |
_render_assertrowexpressionact.sas | Renders the layout of the actual column for _render_assertRowExpression |
_render_assertrowexpressionexp.sas | Renders the layout of the expected column for assertRowExpression |
_render_assertrowexpressionrep.sas | Create HTML pages for assertRowExpression |
_render_asserttableexistsact.sas | Renders the layout of the actual column for assertTableExists |
_render_asserttableexistsexp.sas | Renders the layout of the expected column for assertTableExists |
_render_crossrefcolumn.sas | |
_render_datacolumn.sas | Renders the layout of a generic data column |
_render_iconcolumn.sas | Renders the layout of the icon column |
_render_idcolumn.sas | Renders the layout of any id column |
_reportautonhtml.sas | Create a list of units under test for HTML report |
_reportcashtml.sas | Create a list of test cases for HTML report |
_reportcreatestyle.sas | Creates to style used while rendering ODS output |
_reportcreatetagset.sas | Creates tageset used with ODS for generating JUnit-XML output |
_reportdetailhtml.sas | Create page with detail information of a test case in HTML format |
_reportfooter.sas | Create footer area of an page for reporting |
_reportfooterhtml.sas | Create footer area of an HTML page for reporting |
_reportframehtml.sas | Create frame page for HTML report |
_reportheaderhtml.sas | Create HTML header for a page in the HTML report |
_reporthomehtml.sas | Create home page of HTML report |
_reportjunitxml.sas | Creation of XML-based test report according to the JUnit-Sepcification |
_reportloghtml.sas | Convert log-File into HTML page |
_reportpagetophtml.sas | Create HTML header, tabs and title of an HTML page |
_reportpgmdoc.sas | |
_reportpgmheader.sas | |
_reportscnhtml.sas | Create list of test scenarios for HTML report |
_reporttabshtml.sas | Create tabs on HTML page for report |
_reporttcghtml.sas | Processes the output of the MCOVERAGE and MCOVERAGELOC system options available in SAS 9.3 in order to assess test coverage. A html representation of a given macro source code file is generated, showing which lines of code were executed during tests |
_reporttreehtml.sas | Create the table of contents on the left side of the HTML report as a tree |
linux/_runprogramspawned.sas | Runs a program in a spawned process |
unix_aix/_runprogramspawned.sas | Runs a program in a spawned process |
windows/_runprogramspawned.sas | Runs a program in a spawned process |
_scanheader.sas | |
_scenario.sas | Initialize a test scenario, see initSASUnit.sas. _scenario.sas is used to initialize the SAS session spawned by runSASUnit.sas |
_stdpath.sas | Standardizes a path makes it relative to a root path |
_tempfilename.sas | Creates a unique name for a temporary dataset in the form WORK.DATAxxx, where xxx is a consecutive integer |
_termscenario.sas | Close the last test case at the end of a test scenario |
_timestamp.sas | Return a formatted timestamp string from a specified datetime value or from the current time |
linux/_xcmd.sas | Run an operation system command |
unix_aix/_xcmd.sas | Run an operation system command |
windows/_xcmd.sas | Run an operation system command |
assertcolumns.sas | Check whether there are differences between the values of the columns of two sas data sets (PROC COMPARE) |
assertequals.sas | Check whether there are differences between the value of a macro variable and an expected value |
assertforeignkey.sas | Checks whether a foreign key relationship between the columns of two data sets exists |
assertlibrary.sas | Check whether all files are identical in the libraries i_expected and i_actual |
assertlog.sas | Check whether errors or warnings appear in the log |
assertlogmsg.sas | Check whether a certain message appears in the log |
assertperformance.sas | Check whether runtime of the testcase is below or equal a given limit |
assertprimarykey.sas | Checks whether a set of columns can be used as primary key for the data set |
assertrecordcount.sas | This assert checks whether a certain number of records exist in a data set specified by parameters i_libref and i_memname |
assertrecordexists.sas | Check whether at least one record exists which satisfies a certain WHERE condition |
assertreport.sas | Check whether a report file exists and was created during the current SAS session |
assertrowexpression.sas | Checks if all observations meet a given WHERE expression |
asserttableexists.sas | Check whether a certain data set, view or catalogue exists |
basedatasets.sas | Create base datasets for a database |
boxplot.sas | Create boxplot for two groups |
boxplot_test.sas | Tests for boxplot.sas |
combineddataset.sas | Create combined dataset for a database |
database_test.sas | Tests for buidling a database |
doxygroups.sas | No source code - only file grouping for Doxygen |
endtestcall.sas | Ends an invocation of a program under test |
endtestcase.sas | Ends a test case |
generate.sas | Partition a SAS dataset by groups, one data set per group |
generate_test.sas | Tests for generate.sas |
getvars.sas | Return variable names for a SAS dataset |
getvars_test.sas | Tests for getvars.sas |
initsasunit.sas | Initialization of a test suite that may comprise several test scenarios |
inittestcase.sas | Start of a new test case that comprises an invocation of a program under test and one or more assertions |
nobs.sas | Return number of observations in a SAS dataset |
nobs_test.sas | Tests for nobs.sas - has to fail! |
regression.sas | Linear regression analysis - example for SASUnit |
regression_test.sas | Tests for regression.sas |
report_de.sas | Create german report in separate subfolder |
reportsasunit.sas | Creation of a test report |
run_all.sas | Run all test scenarios for SASUnit example project |
runsasunit.sas | Invokes one or more test scenarios |