SASUnit Examples
Version 1.2
|
Files | |
file | _sasunit_abspath.sas [code] |
check whether &i_path is absolute or empty. If not, append to &i_root. | |
file | _sasunit_asserts.sas [code] |
Called by assert macros, fills table tst. | |
file | _sasunit_checklog.sas [code] |
check log for errors or warnings | |
file | _sasunit_checkscenario.sas [code] |
determine whether a test scenario has to be executed | |
file | _sasunit_copydir.sas [code] |
copy a complete directory tree. Uses Windows XCOPY or Unix cp | |
file | _sasunit_copyfile.sas [code] |
copy file byte by byte | |
file | _sasunit_delfile.sas [code] |
delete an external file if it exists | |
file | _sasunit_deltempfiles.sas [code] |
delete all SAS datasets in the form WORK.DATAxxx, see tempFileName.sas | |
file | _sasunit_detectsymbols.sas [code] |
determine the language dependant symbols used for NOTE, ERROR, WARNING in the SAS log | |
file | _sasunit_dir.sas [code] |
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 | |
file | _sasunit_doc.sas [code] |
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. | |
file | _sasunit_existdir.sas [code] |
check whether directory exists | |
file | _sasunit_existvar.sas [code] |
determines whether a certain variable, optionally of a certain type, exists in a SAS dataset | |
file | _sasunit_getautocallnumber.sas [code] |
look for a specific program in all of the autocall libraries and return the number of the library (0..9) or 10 if not found. For autocall library numbering see initsasunit.sas. | |
file | _sasunit_getextension.sas [code] |
get file extension including the separating dot | |
file | _sasunit_getpgmdesc.sas [code] |
Programmbeschreibung aus dem Doxygen-Brief-Tag ermitteln. | |
file | _sasunit_handleerror.sas [code] |
check for errors and set status code and messages | |
file | _sasunit_initerrorhandler.sas [code] |
initialize error handling, see _sasunit_handleError.sas. | |
file | _sasunit_loadenvironment.sas [code] |
Initialize runtime environment (macro symbols and librefs / / filerefs) | |
file | _sasunit_mkdir.sas [code] |
create a directory, if it does not exist The containing directory must exist. | |
file | _sasunit_nls.sas [code] |
macro symbols for national language support | |
file | _sasunit_nobs.sas [code] |
Returns number of observations in a SAS dataset. | |
file | _sasunit_oscmds.sas [code] |
set global macro variables for OS commands. | |
file | _sasunit_reportautonhtml.sas [code] |
create a list of units under test for HTML report | |
file | _sasunit_reportcashtml.sas [code] |
create a list of test cases for HTML report | |
file | _sasunit_reportcmphtml.sas [code] |
create HTML report for assertColumns | |
file | _sasunit_reportdetailhtml.sas [code] |
create page with detail information of a test case in HTML format | |
file | _sasunit_reportfooterhtml.sas [code] |
create footer area of an HTML page for reporting | |
file | _sasunit_reportframehtml.sas [code] |
create frame page for HTML report | |
file | _sasunit_reportheaderhtml.sas [code] |
create HTML header for a page in the HTML report | |
file | _sasunit_reporthomehtml.sas [code] |
create home page of HTML report | |
file | _sasunit_reportlibraryhtml.sas [code] |
create HTML pages for assertLibrary | |
file | _sasunit_reportloghtml.sas [code] |
log-File in HTML umwandeln | |
file | _sasunit_reportmanhtml.sas [code] |
copy reports for assertReport and create frame page for comparison where necessary (if two reports have been specified) | |
file | _sasunit_reportpagetophtml.sas [code] |
create HTML header, tabs and title of an HTML page | |
file | _sasunit_reportscnhtml.sas [code] |
create list of test scenarios for HTML report | |
file | _sasunit_reporttabshtml.sas [code] |
create tabs on HTML page for report | |
file | _sasunit_reporttreehtml.sas [code] |
create the table of contents on the left side of the HTML report as a tree | |
file | _sasunit_scenario.sas [code] |
initialize a test scenario, see initSASUnit.sas. _sasunit_scenario.sas is used to initialize the SAS session spawned by runSASUnit.sas | |
file | _sasunit_stdpath.sas [code] |
standardizes a path makes it relative to a root path | |
file | _sasunit_tempfilename.sas [code] |
creates a unique name for a temporary dataset in the form WORK.DATAxxx, where xxx is a consecutive integer. | |
file | _sasunit_termscenario.sas [code] |
close the last test case at the end of a test scenario. | |
file | _sasunit_timestamp.sas [code] |
return a formatted timestamp string from a specified datetime value or from the current time. | |
file | _sasunit_xcmd.sas [code] |
run an operation system command | |
file | assertcolumns.sas [code] |
Check whether there are differences between the values of the columns of two sas data sets (PROC COMPARE). | |
file | assertequals.sas [code] |
Check whether there are differences between the value of a macro variable and an expected character string. | |
file | assertlibrary.sas [code] |
Check whether all files are identical in the libraries i_expcected and i_actual. | |
file | assertlog.sas [code] |
Check whether errors or warnings appear in the log. | |
file | assertlogmsg.sas [code] |
Check whether a certain message appears in the log. | |
file | assertperformance.sas [code] |
Check whether runtime of the testcase is below or equal a given limit. | |
file | assertreport.sas [code] |
Check whether a report file exists and was created during the current SAS session. | |
file | endtestcall.sas [code] |
Ends an invocation of a program under test. | |
file | endtestcase.sas [code] |
Ends a test case. | |
file | initsasunit.sas [code] |
Initialization of a test suite that may comprise several test scenarios. | |
file | inittestcase.sas [code] |
Start of a new test case that comprises an invocation of a program under test and one or more assertions. | |
file | reportsasunit.sas [code] |
Creation of a test report. | |
file | runsasunit.sas [code] |
Invokes one or more test scenarios. | |