File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Performance and the fly likes Code Coverage in Java Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Performance
Reply Bookmark "Code Coverage in Java" Watch "Code Coverage in Java" New topic
Author

Code Coverage in Java

Muthu Vel
Greenhorn

Joined: Jan 09, 2003
Posts: 12
We are doing mini-project in java to test the efficiency of the java source code,that is, to findout how many times a statement in java source code is executed. For this, we have to use java lex and yacc utilities. But, we are having little knowledge in lex and yacc in unix environment. so we need guide who is well-wised in java lex and yacc in windows environment. so please any one who is interested please contact us through muthuvel_is@yahoo.com
System.out.println("Wanted Help");
if(i=10)
{
j = p++;
k = z++;
}
else
l++;
for the above piece of code, we have to include a variable(must be unique from the variable used inside the original source code)and incrementing the variable to find how many times it is executed. The expected result might be in the form.

line number : number of times executed
15 : 10
16 : 5


Thanks in Advance..<br /> smvel
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
Muthu,
This forum is for questions related to this SITE (not to java). Moving to the Performance forum.
Having someone respond to you via e-mail will not help out anyone ELSE who might be interested in the conversation. Please post your responses here.
Cindy


"JavaRanch, where the deer and the Certified play" - David O'Meara
 
 
subject: Code Coverage in Java
 
Threads others viewed
OO Parsers
Code Coverage in Java
Utility like generic compiler
Implementation of SLR parser
Old-school programming techniques you probably don't miss
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture