0

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.

4

2 回答 2

4

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.

于 2013-11-13T13:32:37.000 回答
1

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.

于 2013-11-13T13:34:14.687 回答