简体   繁体   中英

Java method calls / line statics

I have different input data for a Java application.

Is there an easy way to see which methods and at best which code path are "touched" when using a certain set of input data?

Best solution would give some statics on how much of the code paths are run with that set of example data.

The thing you're looking for is a Code Coverage Tool . There are many available, and the major ones are listed here on Wikipedia: Java Code Coverage Tools .

We're using EclEmma for that. It's a code coverage tool for Eclipse IDE. If you don't want to use eclipse, you can just use EMMA .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM