Java Test Coverage Tool Analyser
Original Publication Date: 2000-Mar-01
Included in the Prior Art Database: 2003-Jun-20
When testing a Java* application you often receive a 'jar' file with the class files in it. From a test point of view you often need to know that when you execute your tests all of these classes have been excuted. This disclosure shows how you can automatically take the 'jar' file, run your tests and provide information on your test code coverage. By using 'unjar' you can get a list of the classes in the shipped code. Chopping off the ".class" at the end of each line lists classes to test. e.g "javax/security/callback/NameCallback" Now run your java testcases with the "-verbose" option. This profiles all of the classes loaded into Now go through the list of files above looking for the class in the profile output. Count up the number of instances and printout the results.