BookmarkSubscribeRSS Feed
Jason1
Fluorite | Level 6

Hi,

 

Would anyone know of any resources for the above? I have been asked to draft a list of testing guidelines / dev standards and was wondering if there is much info around.

 

Regards,

 

Jason

4 REPLIES 4
LinusH
Tourmaline | Level 20

Every implementation/system is kinda unique, but you wish for some eatable sizes for each part I guess.

SAS Unit test is for me equal SAS DI Job. And tested often by developer, and potentially fellow developer (four eye principle).

Job Flow might be tested by third person, like system admin (depending on your staffing).

Managing data (files) can be a whole library of best practices, and usually ave som many site specific constraints...so I leave it for now.

Data never sleeps
HeG
Calcite | Level 5 HeG
Calcite | Level 5

Hi,

 

We have DI jobs that we create.

In one DI job we have lots of tasks done.

 

How do you unit test your DI jobs?

 

If we write Macros, it is easy to have modules that we unit test. Different story with DI jobs.

 

//Henrik 

Patrick
Opal | Level 21

Unit testing is normally done by a developer (the primary developer or even better a peer). You execute the DIS job directly out of DIS or in batch and check against pre-defined unit test cases.

You check the log for any anomalies (warnings and the like; can be one of the unit test cases) and you check if you meet all the unit test cases - and you maintain a log of your testing with failure/success against each test case. Once complete/successful you handover your objects for the next level of testing.

 

HeG
Calcite | Level 5 HeG
Calcite | Level 5

Hi,

 

Thank you for your answer.

 

For me Unit test is "testing bits of your code in isolation with test code"

DI jobs will create a sas file with different behaviors so how do you test "each" behavior with one unit test.

 

The greatest pitfall is that developers test too large a unit, or they consider a method a unit. This is particularly true if you don't understand Inversion of Control - in which case your unit tests will always turn into end-to-end integration testing. Unit test should test individual behaviors - and most methods have many behaviors.

 

Any clue howto do that?

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 930 views
  • 0 likes
  • 4 in conversation