I am trying to implement it on SAS 9.4. I have made following changes and the script is running without an error but the final report test_doc_en.html is not getting generated. Please help.
Changes:
0.
Required version changes and path changes in files sasunit.9.4.windows.en.cfg, sasunit.9.4.windows.en.cmd, and sasunit.9.4.windows.en.overwrite.cmd
Commented "check SAS version" condition in initsasunit.sas
%IF %_sasunit_handleError( &l_macname
, WrongVer
, (&sysver. NE 9.1) AND (&sysver. NE 9.2) AND (&sysver. NE 9.3)
, Invalid SAS version - only SAS 9.1 to 9.3)
%THEN %GOTO errexit;
Commented "if test coverage should be assessed: check SAS version" condition in initsasunit.sas
%IF %_sasunit_handleError( &l_macname
, WrongTcVer
, &sysver. NE 9.3
, Invalid SAS version for test coverage assessment - only 9.3 supported)
%THEN %GOTO errexit;
Provided complete path to all required parameters to macro call "initSASUnit" in run_all.sas
I am running tests on windows machine.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I appreciate that you're trying to port SASUnit to SAS9.4. What you did should be sufficient. Without further information on what went wrong, I can't help you.
Would you be so kind to e-mail me your run_all.log.
You'll find it in your sasunit target folder. You specify this folder with parameter io_target in initSASUnit.
Are you currently trying to run the example project? Or do you port an existing project of yours to SAS 9.4?
Looking forward to your response.
Regards
Klaus
mailto: klandwich@users.sf.net
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
ERROR: Physical file does not exist, D:\sasunit\example\doc\sasunit\en\log*.tcg.
NOTE: The file "D:\sasunit\example\doc\sasunit\en/log/000.tcg" is:
Filename=D:\sasunit\example\doc\sasunit\en\log\000.tcg,
RECFM=V,LRECL=32767,File Size (bytes)=0,
I attach full log.
HTML reports does not look good (in comparison to originally attached).
I took a look in the log file you provided and figured out the reason why your SASUnit run did not succeed. The main reason is SASUnit could not figure out the modification date of your test scenarios. Apparently aout using a german install of windows right? We're using a windows command shell and a dir command to retrieve the modififcation date of all test scenarios.
Obviously you are using the following date format: yyyy-mm-dd.
Time format hh:mm without AM/PM.
Now there are two ways to get SASUnit running.
Change your date format to dd-mm-yyyy as SASUnit expects for a german WINDOWS installation.
Change date format in _dir.sas in the windows folder.Therefore you need to change the highlighted row in the macro see attachment. The if block starts at row 107. In row 109 the date string is coverted to as SAS date value. the new format should be yymmdd10.
We need to get rid of date formating problems. I will create a new ticket therefore.
I am trying to implement it on SAS 9.4. I have made following changes and the script is running without an error but the final report test_doc_en.html is not getting generated. Please help.
Changes:
0.
Required version changes and path changes in files sasunit.9.4.windows.en.cfg, sasunit.9.4.windows.en.cmd, and sasunit.9.4.windows.en.overwrite.cmd
Commented "check SAS version" condition in initsasunit.sas
%IF %_sasunit_handleError( &l_macname
, WrongVer
, (&sysver. NE 9.1) AND (&sysver. NE 9.2) AND (&sysver. NE 9.3)
, Invalid SAS version - only SAS 9.1 to 9.3)
%THEN %GOTO errexit;
Commented "if test coverage should be assessed: check SAS version" condition in initsasunit.sas
%IF %_sasunit_handleError( &l_macname
, WrongTcVer
, &sysver. NE 9.3
, Invalid SAS version for test coverage assessment - only 9.3 supported)
%THEN %GOTO errexit;
Provided complete path to all required parameters to macro call "initSASUnit" in run_all.sas
I am running tests on windows machine.
Hi Amit,
I appreciate that you're trying to port SASUnit to SAS9.4. What you did should be sufficient. Without further information on what went wrong, I can't help you.
Would you be so kind to e-mail me your run_all.log.
You'll find it in your sasunit target folder. You specify this folder with parameter io_target in initSASUnit.
Are you currently trying to run the example project? Or do you port an existing project of yours to SAS 9.4?
Looking forward to your response.
Regards
Klaus
mailto: klandwich@users.sf.net
Hi Klaus,
I have just sent you the log from amitnakrani82@gmail.com.
I am trying to run example project only.
Please refer to the email and suggest me.
Regards,
Amit
Support for SAS 9.4 is now available in Version 1.3 of SASUnit.
Hello,
I followed your instructions for the attached example and I don't see correct results in the HTML report. Program finished with errors.
I am using:
Firstly, I changed the paths in all configuration files:
Then, I ran:
In the command prompt, I saw the following message:
I attach full log.
Hello kacperdominik,
I took a look in the log file you provided and figured out the reason why your SASUnit run did not succeed. The main reason is SASUnit could not figure out the modification date of your test scenarios. Apparently aout using a german install of windows right? We're using a windows command shell and a dir command to retrieve the modififcation date of all test scenarios.
Obviously you are using the following date format: yyyy-mm-dd.
Time format hh:mm without AM/PM.
Now there are two ways to get SASUnit running.
We need to get rid of date formating problems. I will create a new ticket therefore.
Regards
Klaus Landwich