| Author |
Message |
alans
Joined: 09 May 2012 Posts: 2 Location: Calgary, AB, Canada
|
Posted: Wed May 09, 2012 10:21 pm Post subject: Instrumenting tests for failure conditions |
|
|
Hello,
I was wondering if anyone has written a test case where the desired outcome (i.e. the pass criteria) is for the procedure to fail.
I looked at the tSQLt Wiki on assertions, but they don't seem to have one that asserts that something has failed (which would be the pass condition)...
The procedure that I'm testing will call a RAISERROR (16, 1) when the failure condition is met.
Thanks,
Alan |
|
| Back to top |
|
 |
alans
Joined: 09 May 2012 Posts: 2 Location: Calgary, AB, Canada
|
Posted: Wed May 09, 2012 11:06 pm Post subject: |
|
|
Ah, nevermind. I just need to use a begin/end error block.
Thanks,
Alan |
|
| Back to top |
|
 |
|
|
All times are GMT + 1 Hour
|
| Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group