2 ms·
Provided that you have a way of simulating an error, you can test the corresponding error-handling path. Then these paths will get executed whenever you run you
by skybrian 8y ago
Provided that you have a way of simulating an error, you can test the corresponding error-handling path. Then these paths will get executed whenever you run your test suite.
A coverage tool can be used to find any error handling code that wasn't tested. (But it won't help you find error handling that's missing altogether.)