SASUnit Examples  Version 1.5.0
run_all.sas
Go to the documentation of this file.
1 
29 OPTIONS
30  MPRINT MAUTOSOURCE NOMLOGIC NOSYMBOLGEN
31  SASAUTOS=(SASAUTOS "%sysget(SASUNIT_ROOT)/saspgm/sasunit") /* SASUnit macro library */
32 ;
33 
34 /* open test repository or create when needed */
35 %initSASUnit(
36  i_root = . /* root path, all other paths can then be relative paths */
37  ,io_target = doc/sasunit/%lowcase(%sysget(SASUNIT_LANGUAGE)) /* Output of SASUnit: test repository, logs, results, reports */
38  ,i_overwrite = %sysget(SASUNIT_OVERWRITE) /* set to 1 to force all test scenarios to be run, else only changed
39  scenarios or scenarios with changed unit under test will be run*/
40  ,i_project = SASUnit Examples /* Name of project, for report */
41  ,i_sasunit = %sysget(SASUNIT_ROOT)/saspgm/sasunit /* SASUnit macro library */
42  ,i_sasautos = saspgm /* Search for units under test here */
43  ,i_testdata = dat /* test data, libref testdata */
44  ,i_refdata = dat /* reference data, libref refdata */
45  ,i_sascfg = bin/sasunit.%sysget(SASUNIT_SAS_VERSION).%lowcase(%sysget(SASUNIT_HOST_OS)).%lowcase(%sysget(SASUNIT_LANGUAGE)).cfg
46  ,i_testcoverage = %sysget(SASUNIT_COVERAGEASSESSMENT) /* set to 1 to assess test coverage assessment */
47  ,i_verbose = 1
48 )
49 
50 /* Run specified test scenarios. There can be more than one call to runSASUnit */
51 %runSASUnit(i_source = saspgm/%str(*)_test.sas);
52 
53 /* Create or recreate HTML pages for report where needed */
54 %reportSASUnit(
55  i_language=%upcase(%sysget(SASUNIT_LANGUAGE))
56  ,o_html=1
57  ,o_junit=1
58 );
59