I want to be able to test coverage by testing those of my methods that have complexity above a certain level.Are there any plugins for this for Eclipse, Sonar, Hudson?
Thanks!
I found a simpler solution. I can use the filter in SONAR http://docs.codehaus.org/display/SONAR/Filters , where you can use this metric.
For good code coverage, you should check out this tool. It is available for Eclipse.
Emma Code Coverage
http://eclipse-metrics.sourceforge.net/
Eclipse Metrics Plugin for Measuring Difficulty
As already mentioned, Cobertura is a tool for measuring code coverage. It also measures complexity (see Report). Thus, you can try converting the xml output so that it only displays the coverage of methods that exceed a given complexity threshold.
Emma code coverage can also be used with ant to automate code coverage.