Skip to content
KLandwich edited this page Feb 14, 2024 · 9 revisions

SASUnit Logo SASUnit - Unit testing for SAS(tm)-programs

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.

Documentation

Users of SASUnit: please refer to our User's Guide.

Developers of SASUnit: please refer to our Development Guidelines.

Users of the ticket system: please refer to our Ticket Management Guidelines.

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
  • 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 9.4 under Windows 10 and CentOS
  • With version 1.2.1 we discontinued testing under SAS 9.1
  • With version 2.0.2 we discontinued testing und SAS 9.2 and SAS 9.3
  • see Release Notes Version 2.1.
  • see System Requirements for detailed test environements

Project Videos on YouTube

SASUnit setting up made easy - with the new startup script

How to use SASUnit with the Enterprise Guide

SASUnit getting started

Project Screenhshots

Interactive usage in Enterprise Guide

Interactive usage in Enterprise Guide

Test documentation: main page

Test documentation: main page

Test documentation: overview of test cases

Test documentation: overview of test cases

Test documentation: overview of test case details

Test documentation: overview of test case details

Test documentation: code coverage

Test documentation: code coverage

Test documentation: cross reference

Test documentation: cross reference

Releases


SASUnit is supported by

HMS Analytical Software

Clone this wiki locally