jplindstrom has asked for the wisdom of the Perl Monks concerning the following question:
Now, T-SQL being as sucky as it is language-wise I immedidately thought of, instead of writing my own test harness in T-SQL, using an existing framwork for this. Say Test::More.
The general idea is to run SQL statements using DBI, begin a transaction, set up test data, run some SPs, inspect the new state with some selects and compare the result with Test::More's utility routines. When I'm done, i just rollback the transaction.
Has this been done before? Any thoughts in general about this?
/J
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using Test::More to unit test T-SQL
by chromatic (Archbishop) on Feb 02, 2003 at 21:27 UTC |