Instrumenting tests for failure conditions

alansalans Posts: 3
edited April 2, 2014 10:29AM in SQL Test
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

Comments

Sign In or Register to comment.