SASUnit Examples  Version 1.2.1
run_all.sas
Go to the documentation of this file.
1 
28 /* change history
29  11.02.2013 PW added usage of option i_testcoverage
30  29.01.2013 KL changed link from _sasunit_doc.sas to Sourceforge SASUnit User's Guide
31  30.08.2012 KL Values for rootpath of SASUnit, language and overwrite are taken over from OS-Variables.
32  So there is no need to change run_all for operating systems or languages
33  05.09.2008 NA Anpassungen Linux
34  06.02.2008 AM Neuerstellung
35 */
36 
37 OPTIONS
38  MPRINT MAUTOSOURCE NOMLOGIC NOSYMBOLGEN
39  SASAUTOS=(SASAUTOS "%sysget(SASUNIT_ROOT)/saspgm/sasunit") /* SASUnit macro library */
40 ;
41 
42 /* open test repository or create when needed */
43 %initSASUnit(
44  i_root = %sysget(SASUNIT_ROOT) /* root path, all other paths can then be relative paths */
45  ,io_target = example/doc/sasunit/%lowcase(%sysget(SASUNIT_LANGUAGE)) /* Output of SASUnit: test repository, logs, results, reports */
46  ,i_overwrite = %sysget(SASUNIT_OVERWRITE) /* set to 1 to force all test scenarios to be run, else only changed
47  scenarios or scenarios with changed unit under test will be run*/
48  ,i_project = SASUnit Examples /* Name of project, for report */
49  ,i_sasunit = saspgm/sasunit /* SASUnit macro library */
50  ,i_sasautos = example/saspgm /* Search for units under test here */
51  ,i_testdata = example/dat /* test data, libref testdata */
52  ,i_refdata = example/dat /* reference data, libref refdata */
53  ,i_sascfg = example/bin/sasunit.%sysget(SASUNIT_SAS_VERSION).%lowcase(%sysget(SASUNIT_HOST_OS)).%lowcase(%sysget(SASUNIT_LANGUAGE)).cfg
54  ,i_testcoverage = %sysget(SASUNIT_COVERAGEASSESSMENT) /* set to 1 to assess test coverage assessment */
55 )
56 
57 /* Run specified test scenarios. There can be more than one call to runSASUnit */
58 %runSASUnit(i_source = example/saspgm/%str(*)_test.sas)
59 
60 /* Create or recreate HTML pages for report where needed */
61 %reportSASUnit(
62  i_language=%upcase(%sysget(SASUNIT_LANGUAGE))
63 );
64