How can we help you today? How can we help you today?

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
alans
0

Comments

2 comments

Add comment

Please sign in to leave a comment.