views:

32

answers:

3

How can i determine what percentage of my methods are covered by jUnit tests? I am assuming there is a more sophisticated way then simply counting ...and one and two etc ...

I specifically wonder how will such counting be handled when single method is covered by 'n' tests.

please let me know and as always "thanks for reading"

+2  A: 

this presentation points to several tools you can use for the purpose.

Alex Martelli
+1  A: 

I've used EclEmma very successfully to cover JUnit test runs. And its free.

quamrana
A: 

I would suggest to go for cobertura for code coverage. It gives detailed information and can give you line by line coverage as well as branch coverage.

Ankit