SASUnit is a unit testing framework for SAS(TM)-programs.
It can be used for the development, execution and automatic documentation of tests for SAS programs.
SASUnit is written purely on the basis of SAS macros and a few shell commands.
There are two videos on YouTube:
* Getting started: https://www.youtube.com/watch?v=Kc66hADHNyI
* Usage of setup scripts: https://www.youtube.com/watch?v=9drW_6eg6G4
SASUnit is brought to you by HMS Analytical Software https://www.analytical-software.de
Features
- Write test scencarios and test cases for SAS(R) programs
- Use assertions to test the values of macro variables, the contents of SAS data sets, relations between data sets (referential constraints), the existence of external files or the presence or absence of log messages
- Measure performance of SAS(R) programs
- Integrate non-automatic tests, for instance visual checks of report output
- Assess test coverage for SAS macros
- Run tests and generate test documentation in batch mode
- implement units and test scenarios within SAS(R) Enterprise Guide. SASUnit now supports test driven development / design
- Get clearly arranged test documentation, integrated with program documentation
- Use test results in continuous integration environments
- Written purely on the basis of SAS macros and a few shell commands
- Thoroughly tested under SAS(R) 9.4 under Windows and Linux
License
GNU General Public License version 3.0 (GPLv3)Follow SASUnit
Other Useful Business Software
Auth0 for AI Agents now in GA
Connect your AI agents to apps and data more securely, give users control over the actions AI agents can perform and the data they can access, and enable human confirmation for critical agent actions.
Rate This Project
Login To Rate This Project
User Reviews
-
I think this is a very well written tool, and a must-have if you regularly use SAS. SAS macro programming is flawed and the debugging capabilities of SAS are extremely limited, so you need to use SASUnit regularly to test your code.
-
SASUnit is the best (only?) tool for ensuring quality of SAS code. It is a little hands on to set up, but a lot of that is the nature of the SAS environment - even a widely used tool like Junit can give you trouble.