|
SASUnit Examples
Version 1.2.1
|
| Check whether &i_path is absolute or empty. If not, append to &i_root | |
| Called by assert macros, fills table tst | |
| Check log for errors or warnings | |
| Determine whether a test scenario has to be executed | |
| Copy a complete directory tree. Uses Windows XCOPY or Unix cp | |
| Copy file byte by byte | |
| 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 | |
| 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 | |
| Check whether 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..9) or 10 if not found. For autocall library numbering see initsasunit.sas | |
| Get file extension including the separating dot | |
| Programmbeschreibung aus dem Doxygen-Brief-Tag ermitteln | |
| Check for errors and set status code and messages | |
| Initialize error handling, see _sasunit_handleError.sas | |
| Initialize runtime environment (macro symbols and librefs / / filerefs) | |
| 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 | |
| Set global macro variables for OS commands | |
| Create a list of units under test for HTML report | |
| Create a list of test cases for HTML report | |
| Create HTML report for assertColumns | |
| Create page with detail information of a test case in HTML format | |
| 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 | |
| Create HTML pages for assertLibrary | |
| Log-File in HTML umwandeln | |
| Copy reports for assertReport and create frame page for comparison where necessary (if two reports have been specified) | |
| 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 otput 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 | |
| Initialize a test scenario, see initSASUnit.sas. _sasunit_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 | |
| 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 character string | |
| Check whether all files are identical in the libraries i_expcected 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 | |
| Check whether a report file exists and was created during the current SAS session | |
| Create boxplot for two groups | |
| Tests for boxplot.sas | |
| 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 |