Title :
Fragment class analysis for testing of polymorphism in Java software
Author :
Rountev, Atanas ; Milanova, Ana ; Ryder, Barbara G.
Author_Institution :
Dept. of Comput. Sci. & Eng., Ohio State Univ., Columbus, OH, USA
fDate :
6/1/2004 12:00:00 AM
Abstract :
Testing of polymorphism in object-oriented software may require coverage of all possible bindings of receiver classes and target methods at call sites. Tools that measure this coverage need to use class analysis to compute the coverage requirements. However, traditional whole-program class analysis cannot be used when testing incomplete programs. To solve this problem, we present a general approach for adapting whole-program class analyses to operate on program fragments. Furthermore, since analysis precision is critical for coverage tools, we provide precision measurements for several analyses by determining which of the computed coverage requirements are actually feasible for a set of subject components. Our work enables the use of whole-program class analyses for testing of polymorphism in partial programs, and identifies analyses that potentially are good candidates for use in coverage tools.
Keywords :
Java; object-oriented methods; program diagnostics; program testing; Java software; fragment class analysis; object-oriented software; partial program; polymorphism testing; whole-program class analysis; Collaboration; Computer Society; Computer science; Contracts; Fault detection; Guidelines; Java; Performance evaluation; Programming profession; Software testing; 65; Program analysis; class analysis; object-oriented software.; test coverage;
Journal_Title :
Software Engineering, IEEE Transactions on
DOI :
10.1109/TSE.2004.20