What is the best way to go about testing that we handle failures appropriately?

Posted by Earlz on Programmers See other posts from Programmers or by Earlz
Published on 2012-10-02T14:36:08Z Indexed on 2012/10/02 15:52 UTC
Read the original article Hit count: 399

we're working on error handling in an application. We try to have fairly good automated test coverage. One big problem though is that we don't really know of a way to test some of our error handling.

For instance, we need to test that whenever there is an uncaught exception, a message is sent to our server with exception information. The big problem with this is that we strive to never have an uncaught exception(and instead have descriptive error messages).

So, how do we test something what we never want to actually happen?

© Programmers or respective owner

Related posts about .NET

Related posts about testing