I'm wrintting java tes开发者_C百科ts to control the GUI application, and I'm searching a tool to cover the java test , what is your recommandation ? which tool is usually used to cover java tests ?
I recommend Cobertura for measuring test coverage. You can plug it into ant, maven, hudson, eclipse etc.
I recommend Sonar, see the hyperlink for how it shows code coverage (apart from doing many other handy things).
You can try to use Cobertura, it creates nice reports, and is easy to use in conjunction with junit, using ant or maven.
A great tool for reporting is Sonar, which integrates coverage tests, but also tools like checkstyle, findbugs, and provides a nice interface to analyse the outputs. It is also very easy to setup, definitively worth trying.
I strongly recommend taking a look at Code Pro tools. It's for Eclipse. And it contains a lot more than code coverage, it is code analyzer, junit test generator, dependency analyzer and so on...
精彩评论