views:

215

answers:

2

Dear Stackoverflow,

Does anyone have experience using a third-party unit testing framework for SAS such as FUTS (http://www.thotwave.com/products/futs.jsp) or SASUnit (http://www.redscope.org/sasunit/en)?

I'd really like to compare and contrast these options with each other and with any other known alternatives (I currently use my own home-brewed unit test %assert macros, but I'd like to switch to something more robust). Possible areas to consider include:

  • What size of user base do these frameworks have?
  • Are they well supported by the developer?
  • Are there known bugs?
  • Are there usability issues?

Most of what I find in internet searches on these products are generally product release announcements by the developers themselves (there are also white papers written by the developers on both of these frameworks). However, I don't see much evidence of a user community actively using these products, which makes me nervous to start using them myself.

+1  A: 

Neither are widely used in my experience. I constantly run into situations where analysts and programmers write their own testing work arounds.

AFHood
Any thoughts on why they aren't widely used? I can understand SASUnit -- it appears to be very new. However, FUTS has been around since 2006, has a SUGI whitepaper explaining the framework, had an announcement on SAS-L and man other websites in 2006, and is _free_.
Matt Nizol
I have many thoughts on why. 1. SAS is considered an adhoc tool in many places and even production code is poorly managed. 2. Unit testing should be part of the organizational process and not up to the individual analyst / programmers. This makes me believe that SAS should create a product to meet the need or at least bless one and turn if over as a way to make SAS a production grade application.
AFHood
A: 

On the SCL side of SAS, SCLUnit is pretty much a direct port of JUnit to SAS Component Language. My former boss and I developed it, and I use it regularly to test classes and methods for my SAS application.

http://www.sascommunity.org/wiki/SclUnit

If you are interested in delving into SCL and object-oriented programming, SCLUnit gives a way to structure unit tests that will be familiar to anyone who has used JUnit or other xUnit frameworks.

Tegularius