BookmarkSubscribeRSS Feed
AllanBowe
Barite | Level 11

Tests are an ESSENTIAL part of any non-trivial SAS project.

 

In this video we explore the SASjs approach to writing, compiling, deploying and executing tests.  Tests can be written for SAS Jobs, Services and Macros.  Each Job/Service/Macro may have one or more tests associated (using name.test.sas or name.test.[integer].sas notation).

 

Test coverage is shown during the _compilation_ of the SAS project.  Test results are shown after deploying and executing the tests.  

 

SASjs Test works on Viya, SAS 9, and Foundation SAS. Self-contained tests are deployed as content to the SAS Logical folder (SAS Drive, SAS Metadata, or SASjs Drive).

For more info on SASjs test, see documentation:  https://cli.sasjs.io/test

 

/Allan
MacroCore library for app developers
Data Workflows, Data Contracts, Data Lineage, Drag & drop excel EUCs to SAS 9 & Viya - Data Controller
DevOps and AppDev on SAS 9 / Viya / Base SAS - SASjs

Catch up on SAS Innovate 2026

Dive into keynotes, announcements and breakthroughs on demand.

Explore Now →
Celebrate the 2025 SAS Hackathon

Watch the 2025 SAS Hackathon Awards Ceremony and experience the excitement all over again!

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 0 replies
  • 1111 views
  • 5 likes
  • 1 in conversation