|
SASUnit Examples
Version 1.3.0
|
| Check whether &i_path is absolute or empty. If not, append to &i_root | |
| Main routine of assertLibrary | |
| Called by assert macros, fills table tst | |
| Check log for errors or warnings | |
| Determine whether a test scenario has to be executed | |
| This macro is part of the HTML speedup solution and "closes" an open HTML page | |
| Copy a complete directory tree. Uses Windows XCOPY or Unix cp | |
| Copy a complete directory tree. Uses Windows XCOPY or Unix cp | |
| Copy a complete directory tree. Uses Windows XCOPY or Unix cp | |
| Copy file byte by byte | |
| Creates test subfolders | |
| Deletes all appendant files in the log, tst and rep folders. Called before a scenario is being executed in order to avoid disused files | |
| Delete an external file if it exists | |
| Delete all SAS datasets in the form WORK.DATAxxx, see tempFileName.sas | |
| Determine the language dependant symbols used for NOTE, ERROR, WARNING in the SAS log | |
| 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 | |
| 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 | |
| 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 | |
| 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 | |
| No source code - only file grouping for Doxygen | |
| Escapes blanks with backslashes if runnign under linux or aix | |
| Escapes blanks with backslashes if runnign under linux or aix | |
| Escapes blanks with backslashes if runnign under linux or aix | |
| Execute an command file by operation system command | |
| Execute an command file by operation system command | |
| Execute an command file by operation system command | |
| Check whether a directory exists | |
| Determines whether a certain variable, optionally of a certain type, exists in a SAS dataset | |
| 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 | |
| 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 | |
| Get file extension including the separating dot | |
| Retrieve program description from Doxygen brief tag | |
| Determine the test case id | |
| Determines and returns the path for test subfolders | |
| Check for errors and set status code and messages | |
| Initialize error handling, see _handleError.sas | |
| Initialize runtime environment (macro symbols and librefs / / filerefs) | |
| Create a directory, if it does not exist The containing directory must exist | |
| Create a directory, if it does not exist The containing directory must exist | |
| Create a directory, if it does not exist The containing directory must exist | |
| Macro symbols for national language support | |
| Returns number of observations in a SAS dataset | |
| This macro is part of the HTML speedup solution and "closes" an open HTML page | |
| Set global macro variables for OS commands | |
| Set global macro variables for OS commands | |
| Set global macro variables for OS commands | |
| Corrects termstring in textfiles. Under Linux CRLF will be converted to CR | |
| Corrects termstring in textfiles. Under Linux CRLF will be converted to CR | |
| Corrects termstring in textfiles. Under Linux CRLF will be converted to CR | |
| Renders the layout of the actual column for assertColumns | |
| Renders the layout of the expected column for assertColumns | |
| Create reports for assertColumns | |
| Renders the layout of the actual column for assertEquals | |
| Renders the layout of the expected column for assertEquals | |
| Renders the layout of the actual column for assertForeignKey | |
| Renders the layout of the expected column for assertForeignKey | |
| Create HTML pages for assertForeignKey | |
| Renders the layout of the actual column for assertLibrary | |
| Renders the layout of the expected column for assertLibrary | |
| Create HTML pages for assertLibrary | |
| Renders the layout of the actual column for assertLog | |
| Renders the layout of the expected column for assertLog | |
| Renders the layout of the actual column for assertLogMsg | |
| Renders the layout of the expected column for assertLogMsg | |
| Renders the layout of the actual column for assertPerformance | |
| Renders the layout of the expected column for assertPerformance | |
| Renders the layout of the actual column for assertPrimaryKey | |
| Renders the layout of the expected column for assertPrimaryKey | |
| Create HTML pages for assertPrimaryKey | |
| Renders the layout of the actual column for assertRecordCount | |
| Renders the layout of the expected column for assertRecordCount | |
| Renders the layout of the actual column for assertRecordExists | |
| Renders the layout of the expected column for assertRecordExists | |
| Renders the layout of the actual column for assertReport | |
| Renders the layout of the expected column for assertReport | |
| Copy reports for assertReport and create frame page for comparison where necessary (if two reports have been specified) | |
| Renders the layout of the actual column for _render_assertRowExpression | |
| Renders the layout of the expected column for assertRowExpression | |
| Create HTML pages for assertRowExpression | |
| Renders the layout of the actual column for assertTableExists | |
| Renders the layout of the expected column for assertTableExists | |
| Renders the layout of a generic data column | |
| Renders the layout of the icon column | |
| Renders the layout of any id column | |
| Create a list of units under test for HTML report | |
| Create a list of test cases for HTML report | |
| Creates to style used while rendering ODS output | |
| Creates tageset used with ODS for generating JUnit-XML output | |
| Create page with detail information of a test case in HTML format | |
| Create footer area of an page for reporting | |
| Create footer area of an HTML page for reporting | |
| Create frame page for HTML report | |
| Create HTML header for a page in the HTML report | |
| Create home page of HTML report | |
| Creation of XML-based test report according to the JUnit-Sepcification | |
| Convert log-File into HTML page | |
| Create HTML header, tabs and title of an HTML page | |
| Create list of test scenarios for HTML report | |
| Create tabs on HTML page for report | |
| 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 | |
| Create the table of contents on the left side of the HTML report as a tree | |
| Runs a program in a spawned process | |
| Runs a program in a spawned process | |
| Runs a program in a spawned process | |
| Initialize a test scenario, see initSASUnit.sas. _scenario.sas is used to initialize the SAS session spawned by runSASUnit.sas | |
| Standardizes a path makes it relative to a root path | |
| Creates a unique name for a temporary dataset in the form WORK.DATAxxx, where xxx is a consecutive integer | |
| Close the last test case at the end of a test scenario | |
| Return a formatted timestamp string from a specified datetime value or from the current time | |
| Run an operation system command | |
| Run an operation system command | |
| Run an operation system command | |
| Check whether there are differences between the values of the columns of two sas data sets (PROC COMPARE) | |
| Check whether there are differences between the value of a macro variable and an expected value | |
| Checks whether a foreign key relationship between the columns of two data sets exists | |
| Check whether all files are identical in the libraries i_expected and i_actual | |
| Check whether errors or warnings appear in the log | |
| Check whether a certain message appears in the log | |
| Check whether runtime of the testcase is below or equal a given limit | |
| Checks whether a set of columns can be used as primary key for the data set | |
| This assert checks whether a certain number of records exist in a data set specified by parameters i_libref and i_memname | |
| Check whether at least one record exists which satisfies a certain WHERE condition | |
| Check whether a report file exists and was created during the current SAS session | |
| Checks if all observations meet a given WHERE expression | |
| Check whether a certain data set, view or catalogue exists | |
| Create base datasets for a database | |
| Create boxplot for two groups | |
| Tests for boxplot.sas | |
| Create combined dataset for a database | |
| Tests for buidling a database | |
| No source code - only file grouping for Doxygen | |
| Ends an invocation of a program under test | |
| Ends a test case | |
| Partition a SAS dataset by groups, one data set per group | |
| Tests for generate.sas | |
| Return variable names for a SAS dataset | |
| Tests for getvars.sas | |
| Initialization of a test suite that may comprise several test scenarios | |
| Start of a new test case that comprises an invocation of a program under test and one or more assertions | |
| Return number of observations in a SAS dataset | |
| Tests for nobs.sas - has to fail! | |
| Linear regression analysis - example for SASUnit | |
| Tests for regression.sas | |
| Create german report in separate subfolder | |
| Creation of a test report | |
| Run all test scenarios for SASUnit example project | |
| Invokes one or more test scenarios |