Menu

SASUnit Documentation Home

Andreas Mangold Klaus Landwich

SASUnit 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 Screenhshots

Screenshot thumbnail
Interactive usage in Enterprise Guide
Screenshot thumbnail
Test documentation: main page
Screenshot thumbnail
Test documentation: overview of test cases
Screenshot thumbnail
Test documentation: overview of test case details
Screenshot thumbnail
Test documentation: code coverage
Screenshot thumbnail
Test documentation: cross reference


SASUnit is supported by

HMS Analytical Software


Related

Documentation: Development Guidelines
Documentation: Documentation Guidelines
Documentation: Release Notes Version 2.1
Documentation: System Requirements
Documentation: Ticket Management Guidelines
Documentation: User's Guide