Testing Java Exceptions: An Instrumentation Technique

Alexandre Locci Martins, Simone Hanazumi, Ana C. V. de Melo · 2014

Quality can be defined as the level of adequacy between the final product and its specification. Software industries use many testing methodologies to assure the high-quality of their software. Code coverage is one of these methodologies usually applied to test the expected (normal) behavior of software. Exception handling structures mainly appear in software code to deal with problems caused by unexpected behavior. Because of this, they are not completely covered with the techniques for testing programs normal behavior. To overcome this limit, we present the Verify Ex, a Java class prototype, together with a Java source code instrumentation technique to exercise exception handling structures. The result is an increase of code coverage rate due to the inclusion of programs exceptional behavior in the testing execution and code coverage analysis.

Read the paper · More papers on PaperTik