dbTalk Databases Forums  

Unit testing SQL Anywhere stored procedures

sybase.public.sqlanywhere.general sybase.public.sqlanywhere.general


Discuss Unit testing SQL Anywhere stored procedures in the sybase.public.sqlanywhere.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Philip Harris
 
Posts: n/a

Default Unit testing SQL Anywhere stored procedures - 01-26-2010 , 01:21 PM






Is anyone aware of a unit testing framework for SQL Anywhere
stored procedures (in particular for SQL Anywhere 9.0.2)? I
have been looking at TSQL Unit for SQL Server 2008.

Phil

Reply With Quote
  #2  
Old   
Hans Groeneveld
 
Posts: n/a

Default Re: Unit testing SQL Anywhere stored procedures - 01-27-2010 , 08:43 AM






I could not find it (few years ago).

We build our own SP Unittest tool in PowerBuilder.
Per Stored Procedure that we want to Unit test we create a small PB
script that executes the SP with several input parameters. The result is
export with a datawindow. When we change the SP and checkin the new
version the tool is runned and checked the results of the new version
with the original ones. If there are differs you will get a warning.
Then you have to check if the diffs are caused by an error in new SP
version or that you solved an error in the old version.

IF you are a PowerBuilder programmer I can send yoy some start scripts.

Bye
Hans

Philip Harris schreef:
Quote:
Is anyone aware of a unit testing framework for SQL Anywhere
stored procedures (in particular for SQL Anywhere 9.0.2)? I
have been looking at TSQL Unit for SQL Server 2008.

Phil

Reply With Quote
  #3  
Old   
Philip Harris
 
Posts: n/a

Default Re: Unit testing SQL Anywhere stored procedures - 01-27-2010 , 12:03 PM



Thanks for the reply, I think if we did do something
ourselves we would probably write the unit test framework in
TSQL and C# as the business is quite strict about what
technologies we use. (but thank you very much for the
offer!)

Hopefully a simple unit testing framework wont take more
than a few days to write.

Regards

Phil



Quote:
I could not find it (few years ago).

We build our own SP Unittest tool in PowerBuilder.
Per Stored Procedure that we want to Unit test we create a
small PB script that executes the SP with several input
parameters. The result is export with a datawindow. When
we change the SP and checkin the new version the tool is
runned and checked the results of the new version with
the original ones. If there are differs you will get a
warning. Then you have to check if the diffs are caused
by an error in new SP version or that you solved an error
in the old version.

IF you are a PowerBuilder programmer I can send yoy some
start scripts.

Bye
Hans

Philip Harris schreef:
Is anyone aware of a unit testing framework for SQL
Anywhere stored procedures (in particular for SQL
Anywhere 9.0.2)? I have been looking at TSQL Unit for
SQL Server 2008.
Phil

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.