BookmarkSubscribeRSS Feed
AndreasMenrath
Pyrite | Level 9

Testing SAS programs just became super easy.

 

I’m excited to share my weekend project with the world: saspytest, now available as open source.

The Python package combines saspy as the SAS execution engine with pytest as the testing framework. It automatically manages SAS sessions and state, handles code submission and errors, and provides prebuilt assertions for fast, reliable test results. It works with both SAS 9 and SAS Viya.

 

You can find release 1.0 here: https://github.com/awesome-sas/saspytest
Install directly via:

pip install saspytest

 

saspytest also includes a specialized AI skill to help you write your first tests — making it even easier to get started.

 

Happy testing!

personal SAS projects:
- SAS linklist: awesome-sas
- SAS Testing Framework: saspytest
1 REPLY 1
ChrisHemedinger
Community Manager

Thanks for this contribution! @snoopy369 has been entertaining/educating SAS programmers with Claude skills via Claude the SAS Programmer: Watch Agentic AI Write SAS 9 Code in Real Time at various conferences, and I wonder if this package can be used together with that technique.

 

AI-assisted coding is truly helping to bring the SAS programming skill into a new era!

Become an Explorer! Join SAS Analytics Explorers to learn and complete challenges that earn rewards!

CFC_SAS_Communities_400x225.jpg

Call for content now open!

It's your turn to help shape SAS Innovate 2027. Share your expertise and inspire the SAS community.

Submit your proposal →

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 136 views
  • 2 likes
  • 2 in conversation